***

title: AskClaudeSkill
slug: /reference/typescript/agents/skills/ask-claude
description: Send prompts to Anthropic's Claude AI for complex reasoning, analysis, or sub-tasks.
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[add-skill]: /docs/server-sdks/reference/typescript/agents/agent-base/add-skill

Send prompts to Anthropic's Claude AI for complex reasoning, analysis, or
sub-tasks that benefit from a dedicated AI query.

**Class:** `AskClaudeSkill`

**Tools:** `ask_claude`

**Env vars:** `ANTHROPIC_API_KEY`

<ParamField path="api_key" type="string" required={true} toc={true}>
  Anthropic API key. Falls back to the `ANTHROPIC_API_KEY` environment variable.
</ParamField>

<ParamField path="model" type="string" default="claude-sonnet-4-5-20250929" toc={true}>
  The Claude model to use.
</ParamField>

<ParamField path="max_tokens" type="number" default="1024" toc={true}>
  Maximum tokens in the response.
</ParamField>

```typescript {6-9}
import { AgentBase, AskClaudeSkill } from '@signalwire/sdk';

const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
agent.setPromptText('You are a helpful assistant.');

await agent.addSkill(new AskClaudeSkill({
  model: 'claude-sonnet-4-5-20250929',
  max_tokens: 2048,
}));

agent.run();
```