The Models API now includes a capabilities.server_tools field: GET /v1/models and GET /v1/models/{model_id} report whether each model accepts the web search and code execution tools, via capabilities.server_tools.code_execution. The top-level capabilities.code_execution still reports whether code can call your request's other tools.
Read the full story on platform.claude.com
What to doRead capabilities.server_tools from the Models API endpoints to check tool support per model instead of hardcoding it.
- Provider
- Anthropic
- Source
- platform.claude.com