The whole hunk
from line 1666, old and new numbered
/
lines
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 1666
16661666
16671667 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
16681668
1669 Tool invocation directly from the model.
1670
16711669 - `BetaDirectCaller object`
16721670
16731671 Tool invocation directly from the model.
from line 1921
19231921
19241922 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
19251923
1926 Tool invocation directly from the model.
1927
19281924 - `BetaDirectCaller object`
19291925
19301926 Tool invocation directly from the model.
from line 1977
19811977
19821978 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
19831979
1984 Tool invocation directly from the model.
1985
19861980 - `BetaDirectCaller object`
19871981
19881982 Tool invocation directly from the model.
from line 2043
20492043
20502044 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
20512045
2052 Tool invocation directly from the model.
2053
20542046 - `BetaDirectCaller object`
20552047
20562048 Tool invocation directly from the model.
from line 2111
21192111
21202112 - `content: BetaCodeExecutionToolResultBlockParamContent`
21212113
2122 Code execution result with encrypted stdout for PFC + web_search results.
2123
21242114 - `BetaCodeExecutionToolResultErrorParam object`
21252115
21262116 - `type: "code_execution_tool_result_error"`
from line 2432
24422432
24432433 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
24442434
2445 Reference to a single tool the caller declared directly in
2446 `tools[]`. Does not accept the composed `{server}_{name}` form the
2447 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
2448 `mcp_toolset_reference` for those.
2449
24502435 - `BetaToolChangeToolReference object`
24512436
24522437 Reference to a single tool the caller declared directly in
from line 2480
24952480
24962481 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
24972482
2498 Reference to a single tool the caller declared directly in
2499 `tools[]`. Does not accept the composed `{server}_{name}` form the
2500 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
2501 `mcp_toolset_reference` for those.
2502
25032483 - `BetaToolChangeToolReference object`
25042484
25052485 Reference to a single tool the caller declared directly in
from line 5356
53765356
53775357 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
53785358
5379 Tool invocation directly from the model.
5380
53815359 - `BetaDirectCaller object`
53825360
53835361 Tool invocation directly from the model.
from line 5418
54405418
54415419 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
54425420
5443 Tool invocation directly from the model.
5444
54455421 - `BetaDirectCaller object`
54465422
54475423 Tool invocation directly from the model.
from line 5476
55005476
55015477 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
55025478
5503 Tool invocation directly from the model.
5504
55055479 - `BetaDirectCaller object`
55065480
55075481 Tool invocation directly from the model.
from line 5580
56065580
56075581 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
56085582
5609 Tool invocation directly from the model.
5610
56115583 - `BetaDirectCaller object`
56125584
56135585 Tool invocation directly from the model.
from line 5658
56865658
56875659 - `content: BetaCodeExecutionToolResultBlockContent`
56885660
5689 Code execution result with encrypted stdout for PFC + web_search results.
5690
56915661 - `BetaCodeExecutionToolResultError object`
56925662
56935663 - `type: "code_execution_tool_result_error"`
from line 6950
69806950
69816951 - `content_block: BetaTextBlock or BetaThinkingBlock or BetaRedactedThinkingBlock or 14 more`
69826952
6983 Response model for a file uploaded to the container.
6984
69856953 - `BetaTextBlock object`
69866954
69876955 - `BetaThinkingBlock object`
from line 7766
77987766
77997767 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
78007768
7801 Tool invocation directly from the model.
7802
78037769 - `BetaDirectCaller object`
78047770
78057771 Tool invocation directly from the model.
from line 8021
80558021
80568022 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
80578023
8058 Tool invocation directly from the model.
8059
80608024 - `BetaDirectCaller object`
80618025
80628026 Tool invocation directly from the model.
from line 8077
81138077
81148078 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
81158079
8116 Tool invocation directly from the model.
8117
81188080 - `BetaDirectCaller object`
81198081
81208082 Tool invocation directly from the model.
from line 8143
81818143
81828144 - `caller: optional BetaDirectCaller or BetaServerToolCaller or BetaServerToolCaller20260120`
81838145
8184 Tool invocation directly from the model.
8185
81868146 - `BetaDirectCaller object`
81878147
81888148 Tool invocation directly from the model.
from line 8211
82518211
82528212 - `content: BetaCodeExecutionToolResultBlockParamContent`
82538213
8254 Code execution result with encrypted stdout for PFC + web_search results.
8255
82568214 - `BetaCodeExecutionToolResultErrorParam object`
82578215
82588216 - `type: "code_execution_tool_result_error"`
from line 8532
85748532
85758533 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
85768534
8577 Reference to a single tool the caller declared directly in
8578 `tools[]`. Does not accept the composed `{server}_{name}` form the
8579 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
8580 `mcp_toolset_reference` for those.
8581
85828535 - `BetaToolChangeToolReference object`
85838536
85848537 Reference to a single tool the caller declared directly in
from line 8580
86278580
86288581 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
86298582
8630 Reference to a single tool the caller declared directly in
8631 `tools[]`. Does not accept the composed `{server}_{name}` form the
8632 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
8633 `mcp_toolset_reference` for those.
8634
86358583 - `BetaToolChangeToolReference object`
86368584
86378585 Reference to a single tool the caller declared directly in
from line 8714
87668714
87678715 - `role: "user" or "assistant" or "system"`
87688716
8769 - `"use
8717 - `"user"`
8718
8719 - `"assistant"`
8720
8721 - `"system"`
8722
8723 - `clear_at: optional "next_user_message" or "never" or null`
8724
8725 How long this system message's text stays in front of the model. `"never"` (the default) renders it on every request that includes it. `"next_user_message"` renders it only for the user turn it follows: once a later `role: "user"` message exists in `messages` the message stays in the array (send it unchanged) but is no longer shown to the model. Only permitted on `role: "system"` messages.
8726
8727 - `"next_user_message"`
8728
8729 - `"never"`
8730
8731 - `output_config: optional BetaSystemMessageOutputConfig or null`
8732
8733 Per-message output configuration on a role:"system" input message.
8734
8735 Fields here apply per-turn; `format` remains top-level only. An
8736 empty `{}` is accepted on a message that carries content; a message
8737 with neither content nor output_config fields is rejected.
8738
8739 - `effort: optional "low" or "medium" or "high" or 2 more or null`
8740
8741 All possible effort levels.
8742
8743 - `"low"`
8744
8745 - `"medium"`
8746
8747 - `"high"`
8748
8749 - `"xhigh"`
8750
8751 - `"max"`
8752
8753- `model: Model`
8754
8755 The model that will complete your prompt.
8756
8757 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
8758
8759- `cache_control: optional BetaCacheControlEphemeral or null`
8760
8761 Top-level cache control automatically applies a cache_control marker to the last cacheable block in the request.
8762
8763- `context_management: optional BetaContextManagementConfig or null`
8764
8765 Context management configuration.
8766
8767 This allows you to control how Claude manages context across multiple requests, such as whether to clear function results or not.
8768
8769 - `edits: optional array of BetaClearToolUses20250919Edit or BetaClearThinking20251015Edit or BetaCompact20260112Edit`
8770
8771 List of context management edits to apply
8772
8773 minItems: 0
8774
8775 - `BetaClearToolUses20250919Edit object`
8776
8777 - `type: "clear_tool_uses_20250919"`
8778
8779 - `clear_at_least: optional BetaInputTokensClearA