Skip to content

参考数据:实时文档源

Data: Live documentation sources

v2.1.63

WebFetch URLs for fetching current Claude API and Agent SDK documentation from official sources

实时文档源

本文档包含用于从 platform.claude.com 和 Agent SDK 仓库获取最新信息的 WebFetch URL。当用户需要可能自缓存内容上次更新后已发生变化的最新数据时,请使用这些 URL。

何时使用 WebFetch

  • 用户明确要求获取"最新"或"当前"信息
  • 缓存数据似乎不正确
  • 用户询问缓存内容未涵盖的功能
  • 用户需要特定的 API 详情或示例

Claude API 文档 URL

模型与定价

主题URL提取提示
模型概览https://platform.claude.com/docs/en/about-claude/models/overview.md"提取所有 Claude 模型的当前模型 ID、上下文窗口和定价信息"
定价https://platform.claude.com/docs/en/pricing.md"提取每百万 token 的当前输入和输出定价"

核心功能

主题URL提取提示
扩展思考https://platform.claude.com/docs/en/build-with-claude/extended-thinking.md"提取扩展思考参数、budget_tokens 要求和用法示例"
自适应思考https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking.md"提取自适应思考设置、effort 级别和 用法示例"
Effort 参数https://platform.claude.com/docs/en/build-with-claude/effort.md"提取 effort 级别、成本-质量权衡以及与思考功能的交互"
工具使用https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview.md"提取工具定义模式、tool_choice 选项以及工具结果处理"
流式传输https://platform.claude.com/docs/en/build-with-claude/streaming.md"提取流式传输事件类型、SDK 示例和最佳实践"
提示词缓存https://platform.claude.com/docs/en/build-with-claude/prompt-caching.md"提取 cache_control 用法、定价优势和实现示例"

媒体与文件

主题URL提取提示
视觉https://platform.claude.com/docs/en/build-with-claude/vision.md"提取支持的图像格式、大小限制和代码示例"
PDF 支持https://platform.claude.com/docs/en/build-with-claude/pdf-support.md"提取 PDF 处理能力、限制和示例"

API 操作

主题URL提取提示
批处理https://platform.claude.com/docs/en/build-with-claude/batch-processing.md"提取批处理 API 端点、请求格式和结果轮询"
文件 APIhttps://platform.claude.com/docs/en/build-with-claude/files.md"提取文件上传、下载以及在消息中的引用,包括支持的类型和 beta 头信息"
Token 计数https://platform.claude.com/docs/en/build-with-claude/token-counting.md"提取 token 计数 API 用法和示例"
速率限制https://platform.claude.com/docs/en/api/rate-limits.md"提取按层级和模型的当前速率限制"
错误https://platform.claude.com/docs/en/api/errors.md"提取 HTTP 错误代码、含义和重试指导"

工具

主题URL提取提示
代码执行https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool.md"提取代码执行工具设置、文件上传、容器重用和响应处理"
计算机使用https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use.md"提取计算机使用工具设置、能力和实现示例"

高级功能

主题URL提取提示
结构化输出https://platform.claude.com/docs/en/build-with-claude/structured-outputs.md"提取 output_config.format 用法和模式强制执行"
压缩https://platform.claude.com/docs/en/build-with-claude/compaction.md"提取压缩设置、触发配置和带压缩的流式传输"
引用https://platform.claude.com/docs/en/build-with-claude/citations.md"提取引用格式和实现"
上下文窗口https://platform.claude.com/docs/en/build-with-claude/context-windows.md"提取上下文窗口大小和 token 管理"

Claude API SDK 仓库

SDKURL描述
Pythonhttps://github.com/anthropics/anthropic-sdk-pythonanthropic pip 包源
TypeScripthttps://github.com/anthropics/anthropic-sdk-typescript@anthropic-ai/sdk npm 源
Javahttps://github.com/anthropics/anthropic-sdk-javaanthropic-java Maven 源
Gohttps://github.com/anthropics/anthropic-sdk-goGo 模块源
Rubyhttps://github.com/anthropics/anthropic-sdk-rubyanthropic gem 源
C#https://github.com/anthropics/anthropic-sdk-csharpNuGet 包源
PHPhttps://github.com/anthropics/anthropic-sdk-phpComposer 包源

Agent SDK 文档 URL

核心文档

主题URL提取提示
Agent SDK 概览https://platform.claude.com/docs/en/agent-sdk.md"提取 Agent SDK 概览、关键功能和用例"
Agent SDK Pythonhttps://github.com/anthropics/claude-agent-sdk-python"提取 Python SDK 安装、导入和基本用法"
Agent SDK TypeScripthttps://github.com/anthropics/claude-agent-sdk-typescript"提取 TypeScript SDK 安装、导入和基本用法"

SDK 参考(GitHub README)

主题URL提取提示
Python SDKhttps://raw.githubusercontent.com/anthropics/claude-agent-sdk-python/main/README.md"提取 Python SDK API 参考、类和方法"
TypeScript SDKhttps://raw.githubusercontent.com/anthropics/claude-agent-sdk-typescript/main/README.md"提取 TypeScript SDK API 参考、类型和函数"

npm/PyPI 包

URL描述
claude-agent-sdk (Python)https://pypi.org/project/claude-agent-sdk/PyPI 上的 Python 包
@anthropic-ai/claude-agent-sdk (TS)https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdknpm 上的 TypeScript 包

GitHub 仓库

资源URL描述
Python SDKhttps://github.com/anthropics/claude-agent-sdk-pythonPython 包源
TypeScript SDKhttps://github.com/anthropics/claude-agent-sdk-typescriptTypeScript/Node.js 包源
MCP 服务器https://github.com/modelcontextprotocol官方 MCP 服务器实现

备用策略

如果 WebFetch 失败(网络问题、URL 变更):

  1. 使用语言特定文件中的缓存内容(注意缓存日期)
  2. 告知用户数据可能已过时
  3. 建议他们直接查看 platform.claude.com 或 GitHub 仓库

英文原文 / English Original

Live Documentation Sources

This file contains WebFetch URLs for fetching current information from platform.claude.com and Agent SDK repositories. Use these when users need the latest data that may have changed since the cached content was last updated.

When to Use WebFetch

  • User explicitly asks for "latest" or "current" information
  • Cached data seems incorrect
  • User asks about features not covered in cached content
  • User needs specific API details or examples

Claude API Documentation URLs

Models & Pricing

TopicURLExtraction Prompt
Models Overviewhttps://platform.claude.com/docs/en/about-claude/models/overview.md"Extract current model IDs, context windows, and pricing for all Claude models"
Pricinghttps://platform.claude.com/docs/en/pricing.md"Extract current pricing per million tokens for input and output"

Core Features

TopicURLExtraction Prompt
Extended Thinkinghttps://platform.claude.com/docs/en/build-with-claude/extended-thinking.md"Extract extended thinking parameters, budget_tokens requirements, and usage examples"
Adaptive Thinkinghttps://platform.claude.com/docs/en/build-with-claude/adaptive-thinking.md"Extract adaptive thinking setup, effort levels, and usage examples"
Effort Parameterhttps://platform.claude.com/docs/en/build-with-claude/effort.md"Extract effort levels, cost-quality tradeoffs, and interaction with thinking"
Tool Usehttps://platform.claude.com/docs/en/agents-and-tools/tool-use/overview.md"Extract tool definition schema, tool_choice options, and handling tool results"
Streaminghttps://platform.claude.com/docs/en/build-with-claude/streaming.md"Extract streaming event types, SDK examples, and best practices"
Prompt Cachinghttps://platform.claude.com/docs/en/build-with-claude/prompt-caching.md"Extract cache_control usage, pricing benefits, and implementation examples"

Media & Files

TopicURLExtraction Prompt
Visionhttps://platform.claude.com/docs/en/build-with-claude/vision.md"Extract supported image formats, size limits, and code examples"
PDF Supporthttps://platform.claude.com/docs/en/build-with-claude/pdf-support.md"Extract PDF handling capabilities, limits, and examples"

API Operations

TopicURLExtraction Prompt
Batch Processinghttps://platform.claude.com/docs/en/build-with-claude/batch-processing.md"Extract batch API endpoints, request format, and polling for results"
Files APIhttps://platform.claude.com/docs/en/build-with-claude/files.md"Extract file upload, download, and referencing in messages, including supported types and beta header"
Token Countinghttps://platform.claude.com/docs/en/build-with-claude/token-counting.md"Extract token counting API usage and examples"
Rate Limitshttps://platform.claude.com/docs/en/api/rate-limits.md"Extract current rate limits by tier and model"
Errorshttps://platform.claude.com/docs/en/api/errors.md"Extract HTTP error codes, meanings, and retry guidance"

Tools

TopicURLExtraction Prompt
Code Executionhttps://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool.md"Extract code execution tool setup, file upload, container reuse, and response handling"
Computer Usehttps://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use.md"Extract computer use tool setup, capabilities, and implementation examples"

Advanced Features

TopicURLExtraction Prompt
Structured Outputshttps://platform.claude.com/docs/en/build-with-claude/structured-outputs.md"Extract output_config.format usage and schema enforcement"
Compactionhttps://platform.claude.com/docs/en/build-with-claude/compaction.md"Extract compaction setup, trigger config, and streaming with compaction"
Citationshttps://platform.claude.com/docs/en/build-with-claude/citations.md"Extract citation format and implementation"
Context Windowshttps://platform.claude.com/docs/en/build-with-claude/context-windows.md"Extract context window sizes and token management"

Claude API SDK Repositories

SDKURLDescription
Pythonhttps://github.com/anthropics/anthropic-sdk-pythonanthropic pip package source
TypeScripthttps://github.com/anthropics/anthropic-sdk-typescript@anthropic-ai/sdk npm source
Javahttps://github.com/anthropics/anthropic-sdk-javaanthropic-java Maven source
Gohttps://github.com/anthropics/anthropic-sdk-goGo module source
Rubyhttps://github.com/anthropics/anthropic-sdk-rubyanthropic gem source
C#https://github.com/anthropics/anthropic-sdk-csharpNuGet package source
PHPhttps://github.com/anthropics/anthropic-sdk-phpComposer package source

Agent SDK Documentation URLs

Core Documentation

TopicURLExtraction Prompt
Agent SDK Overviewhttps://platform.claude.com/docs/en/agent-sdk.md"Extract the Agent SDK overview, key features, and use cases"
Agent SDK Pythonhttps://github.com/anthropics/claude-agent-sdk-python"Extract Python SDK installation, imports, and basic usage"
Agent SDK TypeScripthttps://github.com/anthropics/claude-agent-sdk-typescript"Extract TypeScript SDK installation, imports, and basic usage"

SDK Reference (GitHub READMEs)

TopicURLExtraction Prompt
Python SDKhttps://raw.githubusercontent.com/anthropics/claude-agent-sdk-python/main/README.md"Extract Python SDK API reference, classes, and methods"
TypeScript SDKhttps://raw.githubusercontent.com/anthropics/claude-agent-sdk-typescript/main/README.md"Extract TypeScript SDK API reference, types, and functions"

npm/PyPI Packages

PackageURLDescription
claude-agent-sdk (Python)https://pypi.org/project/claude-agent-sdk/Python package on PyPI
@anthropic-ai/claude-agent-sdk (TS)https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdkTypeScript package on npm

GitHub Repositories

ResourceURLDescription
Python SDKhttps://github.com/anthropics/claude-agent-sdk-pythonPython package source
TypeScript SDKhttps://github.com/anthropics/claude-agent-sdk-typescriptTypeScript/Node.js package source
MCP Servershttps://github.com/modelcontextprotocolOfficial MCP server implementations

Fallback Strategy

If WebFetch fails (network issues, URL changed):

  1. Use cached content from the language-specific files (note the cache date)
  2. Inform user the data may be outdated
  3. Suggest they check platform.claude.com or the GitHub repos directly