{
"model": "claude-opus-4-7",
"messages": [{
"role": "user",
"content": [6 个 block,5 个是注入的上下文
{ "text": "<system-reminder> Hooks 配置..." },
{ "text": "<system-reminder> Deferred Tools 清单..." },
{ "text": "<system-reminder> MCP 服务器使用指南..." },
{ "text": "<system-reminder> 可用 Skills 完整列表..." },
{ "text": "<system-reminder> CLAUDE.md 项目指令..." },
{
"text": "hello",
"cache_control": {"ttl": "1h"}
}
]
}],
"system": [4 块系统提示词
{ "text": "x-anthropic-billing-header: cc_version=2.1.112..." },
{ "text": "You are Claude Code, Anthropic's official CLI..." },
{ "text": "# System ... # Doing tasks ... # Executing ...",
"cache_control": {"ttl": "1h", "scope": "global"} },
{ "text": "# Text output ... # auto memory ... # Environment" }
],
"tools": [10 个工具定义
{ "name": "Agent", "description": "Launch a new agent to handle complex, multi-step tasks..." },
{ "name": "Bash", "description": "Executes a given bash command and returns its output..." },
{ "name": "Edit", "description": "Performs exact string replacements in files..." },
{ "name": "Glob", "description": "Fast file pattern matching tool..." },
{ "name": "Grep", "description": "A powerful search tool built on ripgrep..." },
{ "name": "Read", "description": "Reads a file from the local filesystem..." },
{ "name": "Write", "description": "Writes a file to the local filesystem..." },
{ "name": "ScheduleWakeup", "description": "Schedule when to resume work..." },
{ "name": "Skill", "description": "Execute a skill within the main conversation..." },
{ "name": "ToolSearch", "description": "Fetches full schema for deferred tools..." }
],
"max_tokens": 64000,
"stream": true,
"thinking": { "type": "adaptive" },自动决定是否深度推理
"output_config": { "effort": "xhigh" }最高推理档位(默认)
}