| name | claude-api |
| description | Load Claude API reference material for your project's language (Python, TypeScript, Java, Go, Ruby, C#, PHP, or cURL). Use when the user asks about using Anthropic SDKs, tool use, streaming, or structured outputs. |
When the user asks about Claude API or Anthropic SDKs:
-
Activate automatically when code imports anthropic, @anthropic-ai/sdk, or claude_agent_sdk.
-
Provide reference for:
- Tool use (function calling)
- Streaming responses
- Message batches
- Structured outputs (JSON mode)
- Common pitfalls (e.g., token limits, prompt engineering)
-
Current SDKs:
- TypeScript:
@anthropic-ai/sdk
- Python:
anthropic
- Go, Java, Ruby, C#, PHP (via community or direct REST)
-
Key Concept: Always use the messages API, not the legacy completions API.