Create a Message changedapi/beta/messages/create
Nearest release: v2.1.238, published under an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+891added
Lines−131removed
From line
21
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits30to this page, all time
The whole hunk
from line 21, old and new numbered
/
The two sides of this change are more than 400 edits apart, too far apart to line up, so this is the differ's own diff of it and the words inside a line are not marked.
from line 21
2121
2222 - `string`
2323
24 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 30 more`
24 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
2525
2626 - `"message-batches-2024-09-24"`
2727
from line 66
6666 - `"output-300k-2026-03-24"`
6767
6868 - `"user-profiles-2026-03-24"`
69
70 - `"user-profiles-2026-08-18"`
6971
7072 - `"advisor-tool-2026-03-01"`
7173
from line 301
299301
300302 - `"search_result_location"`
301303
302 - `BetaImageBlockParam object { source, type, cache_control }`
304 - `BetaImageBlockParam object { source, type, cache_control, transformations }`
303305
304306 - `source: BetaBase64ImageSource or BetaURLImageSource or BetaFileImageSource`
305307
from line 347
345347
346348 Create a cache control breakpoint at this content block.
347349
350 - `transformations: optional BetaImageTransformationsParam or null`
351
352 Configures the transformations the server applies to this image before the model observes it. Each key names a condition the server transforms images for; its value selects the transformation applied. Omitted keys keep their default behavior, and an empty object is equivalent to omitting the field.
353
354 - `oversized_image: optional "downsize" or "error"`
355
356 What the server does when this image exceeds the model's maximum image size. `"downsize"` (the default) scales the image down to fit, which changes the dimensions the model observes without telling you. `"error"` instead rejects the request with a 400 error naming the image's dimensions and the largest dimensions that fit, so you can scale the image deliberately — your image is never silently scaled down.
357
358 - `"downsize"`
359
360 - `"error"`
361
348362 - `BetaRequestDocumentBlock object { source, type, cache_control, 3 more }`
349363
350364 - `source: BetaBase64PDFSource or BetaPlainTextSource or BetaContentBlockSource or 2 more`
from line 397
383397
384398 - `BetaTextBlockParam object { text, type, cache_control, citations }`
385399
386 - `BetaImageBlockParam object { source, type, cache_control }`
400 - `BetaImageBlockParam object { source, type, cache_control, transformations }`
387401
388402 - `type: "content"`
389403
from line 489
475489
476490 - `"redacted_thinking"`
477491
478 - `BetaToolUseBlockParam object { id, input, name, 3 more }`
492 - `BetaToolUseBlockParam object { id, input, name, 4 more }`
479493
480494 - `id: string`
481495
from line 535
521535
522536 - `"code_execution_20260120"`
523537
524 - `BetaToolResultBlockParam object { tool_use_id, type, cache_control, 2 more }`
538 - `toolset_name: optional string or null`
539
540 For a toolset member tool_use, the toolset family this member belongs to.
541
542 - `BetaToolResultBlockParam object { tool_use_id, type, cache_control, 3 more }`
525543
526544 - `tool_use_id: string`
527545
from line 551
533551
534552 Create a cache control breakpoint at this content block.
535553
536 - `content: optional string or array of BetaTextBlockParam or BetaImageBlockParam or BetaSearchResultBlockParam or 2 more`
554 - `content: optional string or array of BetaTextBlockParam or BetaImageBlockParam or BetaSearchResultBlockParam or 3 more`
537555
538556 - `string`
539557
540 - `array of BetaTextBlockParam or BetaImageBlockParam or BetaSearchResultBlockParam or 2 more`
558 - `array of BetaTextBlockParam or BetaImageBlockParam or BetaSearchResultBlockParam or 3 more`
541559
542560 - `BetaTextBlockParam object { text, type, cache_control, citations }`
543561
544 - `BetaImageBlockParam object { source, type, cache_control }`
562 - `BetaImageBlockParam object { source, type, cache_control, transformations }`
545563
546564 - `BetaSearchResultBlockParam object { content, source, title, 3 more }`
547565
from line 579
561579
562580 Create a cache control breakpoint at this content block.
563581
582 - `BetaBrowserStateBlockParam object { tabs, type, cache_control, state_changes }`
583
584 The caller's browser state after a browser toolset member call —
585 the full inventory of open tabs, which tab is active, and any side
586 effects (tabs opened, download state changes) the call produced.
587
588 At most one per `tool_result`, only on a non-error result answering a
589 browser toolset member `tool_use`. The server renders the
590 model-visible text from it; the model never sees the raw fields.
591
592 - `tabs: array of BetaBrowserStateTabEntry`
593
594 All tabs open in the browser after this call — the full inventory, not a delta. May be empty. Whenever non-empty, exactly one entry carries `active: true`.
595
596 - `tab_id: string`
597
598 The caller-assigned identifier for this tab, unique within the inventory.
599
600 - `title: string`
601
602 The title of the page the tab is showing. May be empty.
603
604 - `url: string`
605
606 The URL of the page the tab is showing. May be empty.
607
608 - `active: optional boolean`
609
610 Whether this tab is the active tab after this call. Whenever `tabs` is non-empty, exactly one entry is marked `active: true`.
611
612 - `type: "browser_state"`
613
614 - `"browser_state"`
615
616 - `cache_control: optional BetaCacheControlEphemeral or null`
617
618 Create a cache control breakpoint at this content block.
619
620 - `state_changes: optional array of BetaBrowserStateChange or null`
621
622 Tabs opened and download state changes during this call. "Nothing to report" is expressed by omitting the field, never by an empty list.
623
624 - `BetaBrowserStateChangeTabOpened object { tab_id, type }`
625
626 A tab this call's execution opened that remains open at its end —
627 the creation delta of the `tabs` inventory, not an event log.
628
629 Carries only the `tab_id`; the tab's `title` and `url` live on its
630 `tabs` entry, which must include the same `tab_id`. A tab opened
631 during a failed call gets no deferred `tab_opened`; it simply appears
632 in the next result's `tabs` inventory.
633
634 - `tab_id: string`
635
636 The `tab_id` of the opened tab, present in `tabs`.
637
638 - `type: "tab_opened"`
639
640 - `"tab_opened"`
641
642 - `BetaBrowserStateChangeDownloadStarted object { download_id, type, url }`
643
644 A file download that started during this call.
645
646 - `download_id: string`
647
648 The caller-assigned identifier for this download, stable across the state changes reporting it.
649
650 - `type: "download_started"`
651
652 - `"download_started"`
653
654 - `url: string`
655
656 The final post-redirect URL the download was served from.
657
658 - `BetaBrowserStateChangeDownloadCompleted object { download_id, type, url, 2 more }`
659
660 A file download that finished during this call, reported with the
661 same `download_id` as its `download_started` — or without a prior
662 `download_started`, when the download finished during the call that
663 started it (at most one state change per `download_id` per result).
664
665 - `download_id: string`
666
667 The caller-assigned identifier for this download, stable across the state changes reporting it.
668
669 - `type: "download_completed"`
670
671 - `"download_completed"`
672
673 - `url: string`
674
675 The final post-redirect URL the download was served from.
676
677 - `path: optional string or null`
678
679 Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path.
680
681 - `size_bytes: optional number or null`
682
683 The completed download's size.
684
685 - `BetaBrowserStateChangeDownloadFailed object { download_id, type, url, error }`
686
687 A file download that failed — or was cancelled — during this call.
688
689 - `download_id: string`
690
691 The caller-assigned identifier for this download, stable across the state changes reporting it.
692
693 - `type: "download_failed"`
694
695 - `"download_failed"`
696
697 - `url: string`
698
699 The final post-redirect URL the download was served from.
700
701 - `error: optional string or null`
702
703 The failure or cancellation detail, when known.
704
564705 - `is_error: optional boolean`
706
707 - `toolset_name: optional string or null`
708
709 For a toolset member tool_result, the toolset family of the paired tool_use.
565710
566711 - `BetaServerToolUseBlockParam object { id, input, name, 3 more }`
567712
from line 1286
11411286 - `encrypted_content: optional string or null`
11421287
11431288 Opaque metadata from prior compaction, to be round-tripped verbatim
1144
1145 - `BetaMidConversationSystemBlockParam object { content, type, cache_control }`
1146
1147 System instructions that appear mid-conversation.
1148
1149 Use this block to provide or update system-level instructions at a specific
1150 point in the conversation, rather than only via the top-level `system` parameter.
1151
1152 - `content: array of BetaTextBlockParam or BetaRequestToolAdditionBlock or BetaRequestToolRemovalBlock`
1153
1154 System instruction text blocks.
1155
1156 - `BetaTextBlockParam object { text, type, cache_control, citations }`
1157
1158 - `BetaRequestToolAdditionBlock object { tool, type, cache_control }`
1159
1160 Mid-conversation directive to surface a declared tool.
1161
1162 `tool` references a tool (or MCP toolset) by name from the request's
1163 `tools`; it is offered to the model from this point in the
1164 conversation onward.
1165
1166 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1167
1168 Reference to a single tool the caller declared directly in
1169 `tools[]`. Does not accept the composed `{server}_{name}` form the
1170 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1171 `mcp_toolset_reference` for those.
1172
1173 - `BetaToolChangeToolReference object { name, type }`
1174
1175 Reference to a single tool the caller declared directly in
1176 `tools[]`. Does not accept the composed `{server}_{name}` form the
1177 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1178 `mcp_toolset_reference` for those.
1179
1180 - `name: string`
1181
1182 - `type: "tool_reference"`
1183
1184 - `"tool_reference"`
1185
1186 - `BetaToolChangeMCPToolReference object { name, server_name, type }`
1187
1188 Reference to a single MCP tool by its server and remote name — the
1189 same `server_name`/`name` pair `mcp_tool_use` carries.
1190
1191 - `name: string`
1192
1193 - `server_name: string`
1194
1195 - `type: "mcp_tool_reference"`
1196
1197 - `"mcp_tool_reference"`
1198
1199 - `BetaToolChangeMCPToolsetReference object { server_name, type }`
1200
1201 Reference to every tool in the named MCP server's toolset.
1202
1203 - `server_name: string`
1204
1205 - `type: "mcp_toolset_reference"`
1206
1207 - `"mcp_toolset_reference"`
1208
1209 - `type: "tool_addition"`
1210
1211 - `"tool_addition"`
1212
1213 - `cache_control: optional BetaCacheControlEphemeral or null`
1214
1215 Create a cache control breakpoint at this content block.
1216
1217 - `BetaRequestToolRemovalBlock object { tool, type, cache_control }`
1218
1219 Mid-conversation directive to withdraw a tool.
1220
1221 `tool` references a tool (or MCP toolset) by name from the request's
1222 `tools`; it is no longer offered to the model from this point in the
1223 conversation onward.
1224
1225 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1226
1227 Reference to a single tool the caller declared directly in
1228 `tools[]`. Does not accept the composed `{server}_{name}` form the
1229 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1230 `mcp_toolset_reference` for those.
1231
1232 - `BetaToolChangeToolReference object { name, type }`
1233
1234 Reference to a single tool the caller declared directly in
1235 `tools[]`. Does not accept the composed `{server}_{name}` form the
1236 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1237 `mcp_toolset_reference` for those.
1238
1239 - `BetaToolChangeMCPToolReference object { name, server_name, type }`
1240
1241 Reference to a single MCP tool by its server and remote name — the
1242 same `server_name`/`name` pair `mcp_tool_use` carries.
1243
1244 - `BetaToolChangeMCPToolsetReference object { server_name, type }`
1245
1246 Reference to every tool in the named MCP server's toolset.
1247
1248 - `type: "tool_removal"`
1249
1250 - `"tool_removal"`
1251
1252 - `cache_control: optional BetaCacheControlEphemeral or null`
1253
1254 Create a cache control breakpoint at this content block.
1255
1256 - `type: "mid_conv_system"`
1257
1258 - `"mid_conv_system"`
1259
1260 - `cache_control: optional BetaCacheControlEphemeral or null`
1261
1262 Create a cache control breakpoint at this content block.
12631289
12641290 - `BetaRequestToolAdditionBlock object { tool, type, cache_control }`
12651291
from line 1295
12691295 `tools`; it is offered to the model from this point in the
12701296 conversation onward.
12711297
1298 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1299
1300 Reference to a single tool the caller declared directly in
1301 `tools[]`. Does not accept the composed `{server}_{name}` form the
1302 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1303 `mcp_toolset_reference` for those.
1304
1305 - `BetaToolChangeToolReference object { name, type }`
1306
1307 Reference to a single tool the caller declared directly in
1308 `tools[]`. Does not accept the composed `{server}_{name}` form the
1309 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1310 `mcp_toolset_reference` for those.
1311
1312 - `name: string`
1313
1314 - `type: "tool_reference"`
1315
1316 - `"tool_reference"`
1317
1318 - `BetaToolChangeMCPToolReference object { name, server_name, type }`
1319
1320 Reference to a single MCP tool by its server and remote name — the
1321 same `server_name`/`name` pair `mcp_tool_use` carries.
1322
1323 - `name: string`
1324
1325 - `server_name: string`
1326
1327 - `type: "mcp_tool_reference"`
1328
1329 - `"mcp_tool_reference"`
1330
1331 - `BetaToolChangeMCPToolsetReference object { server_name, type }`
1332
1333 Reference to every tool in the named MCP server's toolset.
1334
1335 - `server_name: string`
1336
1337 - `type: "mcp_toolset_reference"`
1338
1339 - `"mcp_toolset_reference"`
1340
1341 - `type: "tool_addition"`
1342
1343 - `"tool_addition"`
1344
1345 - `cache_control: optional BetaCacheControlEphemeral or null`
1346
1347 Create a cache control breakpoint at this content block.
1348
12721349 - `BetaRequestToolRemovalBlock object { tool, type, cache_control }`
12731350
12741351 Mid-conversation directive to withdraw a tool.
from line 1353
12761353 `tool` references a tool (or MCP toolset) by name from the request's
12771354 `tools`; it is no longer offered to the model from this point in the
12781355 conversation onward.
1356
1357 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1358
1359 Reference to a single tool the caller declared directly in
1360 `tools[]`. Does not accept the composed `{server}_{name}` form the
1361 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1362 `mcp_toolset_reference` for those.
1363
1364 - `BetaToolChangeToolReference object { name, type }`
1365
1366 Reference to a single tool the caller declared directly in
1367 `tools[]`. Does not accept the composed `{server}_{name}` form the
1368 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1369 `mcp_toolset_reference` for those.
1370
1371 - `BetaToolChangeMCPToolReference object { name, server_name, type }`
1372
1373 Reference to a single MCP tool by its server and remote name — the
1374 same `server_name`/`name` pair `mcp_tool_use` carries.
1375
1376 - `BetaToolChangeMCPToolsetReference object { server_name, type }`
1377
1378 Reference to every tool in the named MCP server's toolset.
1379
1380 - `type: "tool_removal"`
1381
1382 - `"tool_removal"`
1383
1384 - `cache_control: optional BetaCacheControlEphemeral or null`
1385
1386 Create a cache control breakpoint at this content block.
12791387
12801388 - `BetaFallbackBlockParam object { from, to, type, trigger }`
12811389
from line 2355
22472355
22482356 When true, guarantees schema validation on tool names and inputs
22492357
2358 - `BetaBrowserToolset20260801 object { type, allowed_callers, cache_control, configs }`
2359
2360 The browser toolset: a single `tools[]` entry (carrying no
2361 `name`) that declares the browser tool family. The model is served
2362 the family's tool with any members disabled via `configs` removed
2363 from its schema.
2364
2365 - `type: "browser_toolset_20260801"`
2366
2367 - `"browser_toolset_20260801"`
2368
2369 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2370
2371 - `"direct"`
2372
2373 - `"code_execution_20250825"`
2374
2375 - `"code_execution_20260120"`
2376
2377 - `"code_execution_20260521"`
2378
2379 - `cache_control: optional BetaCacheControlEphemeral or null`
2380
2381 Create a cache control breakpoint at this content block.
2382
2383 - `configs: optional BetaBrowserToolsetConfigs or null`
2384
2385 Per-member configuration for `browser_toolset_20260801`: one
2386 optional field per member tool, keyed by the member name — the same
2387 name the member's `tool_use` blocks carry. Every member is an
2388 accepted key, and a member's defaults apply wherever its key is
2389 absent. Unknown keys are rejected: the field set is this toolset
2390 version's complete member set.
2391
2392 - `close_tab: optional BetaBrowserCloseTabConfig or null`
2393
2394 `close_tab`'s config overrides.
2395
2396 - `defer_loading: optional boolean or null`
2397
2398 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2399
2400 - `enabled: optional boolean or null`
2401
2402 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2403
2404 - `double_click: optional BetaBrowserDoubleClickConfig or null`
2405
2406 `double_click`'s config overrides.
2407
2408 - `defer_loading: optional boolean or null`
2409
2410 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2411
2412 - `enabled: optional boolean or null`
2413
2414 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2415
2416 - `file_upload: optional BetaBrowserFileUploadConfig or null`
2417
2418 `file_upload`'s config overrides.
2419
2420 - `defer_loading: optional boolean or null`
2421
2422 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2423
2424 - `enabled: optional boolean or null`
2425
2426 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2427
2428 - `find: optional BetaBrowserFindConfig or null`
2429
2430 `find`'s config overrides.
2431
2432 - `defer_loading: optional boolean or null`
2433
2434 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2435
2436 - `enabled: optional boolean or null`
2437
2438 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2439
2440 - `form_input: optional BetaBrowserFormInputConfig or null`
2441
2442 `form_input`'s config overrides.
2443
2444 - `defer_loading: optional boolean or null`
2445
2446 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2447
2448 - `enabled: optional boolean or null`
2449
2450 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2451
2452 - `get_page_text: optional BetaBrowserGetPageTextConfig or null`
2453
2454 `get_page_text`'s config overrides.
2455
2456 - `defer_loading: optional boolean or null`
2457
2458 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2459
2460 - `enabled: optional boolean or null`
2461
2462 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2463
2464 - `hold_key: optional BetaBrowserHoldKeyConfig or null`
2465
2466 `hold_key`'s config overrides.
2467
2468 - `defer_loading: optional boolean or null`
2469
2470 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2471
2472 - `enabled: optional boolean or null`
2473
2474 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2475
2476 - `hover: optional BetaBrowserHoverConfig or null`
2477
2478 `hover`'s config overrides.
2479
2480 - `defer_loading: optional boolean or null`
2481
2482 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2483
2484 - `enabled: optional boolean or null`
2485
2486 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2487
2488 - `javascript_exec: optional BetaBrowserJavascriptExecConfig or null`
2489
2490 `javascript_exec`'s config overrides.
2491
2492 - `defer_loading: optional boolean or null`
2493
2494 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2495
2496 - `enabled: optional boolean or null`
2497
2498 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2499
2500 - `key: optional BetaBrowserKeyConfig or null`
2501
2502 `key`'s config overrides.
2503
2504 - `defer_loading: optional boolean or null`
2505
2506 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2507
2508 - `enabled: optional boolean or null`
2509
2510 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2511
2512 - `left_click: optional BetaBrowserLeftClickConfig or null`
2513
2514 `left_click`'s config overrides.
2515
2516 - `defer_loading: optional boolean or null`
2517
2518 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2519
2520 - `enabled: optional boolean or null`
2521
2522 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2523
2524 - `left_click_drag: optional BetaBrowserLeftClickDragConfig or null`
2525
2526 `left_click_drag`'s config overrides.
2527
2528 - `defer_loading: optional boolean or null`
2529
2530 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2531
2532 - `enabled: optional boolean or null`
2533
2534 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2535
2536 - `left_mouse_down: optional BetaBrowserLeftMouseDownConfig or null`
2537
2538 `left_mouse_down`'s config overrides.
2539
2540 - `defer_loading: optional boolean or null`
2541
2542 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2543
2544 - `enabled: optional boolean or null`
2545
2546 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2547
2548 - `left_mouse_up: optional BetaBrowserLeftMouseUpConfig or null`
2549
2550 `left_mouse_up`'s config overrides.
2551
2552 - `defer_loading: optional boolean or null`
2553
2554 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2555
2556 - `enabled: optional boolean or null`
2557
2558 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2559
2560 - `list_tabs: optional BetaBrowserListTabsConfig or null`
2561
2562 `list_tabs`'s config overrides.
2563
2564 - `defer_loading: optional boolean or null`
2565
2566 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2567
2568 - `enabled: optional boolean or null`
2569
2570 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2571
2572 - `middle_click: optional BetaBrowserMiddleClickConfig or null`
2573
2574 `middle_click`'s config overrides.
2575
2576 - `defer_loading: optional boolean or null`
2577
2578 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2579
2580 - `enabled: optional boolean or null`
2581
2582 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2583
2584 - `mouse_move: optional BetaBrowserMouseMoveConfig or null`
2585
2586 `mouse_move`'s config overrides.
2587
2588 - `defer_loading: optional boolean or null`
2589
2590 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2591
2592 - `enabled: optional boolean or null`
2593
2594 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2595
2596 - `navigate: optional BetaBrowserNavigateConfig or null`
2597
2598 `navigate`'s config overrides.
2599
2600 - `defer_loading: optional boolean or null`
2601
2602 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2603
2604 - `enabled: optional boolean or null`
2605
2606 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2607
2608 - `new_tab: optional BetaBrowserNewTabConfig or null`
2609
2610 `new_tab`'s config overrides.
2611
2612 - `defer_loading: optional boolean or null`
2613
2614 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2615
2616 - `enabled: optional boolean or null`
2617
2618 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2619
2620 - `read_console: optional BetaBrowserReadConsoleConfig or null`
2621
2622 `read_console`'s config overrides.
2623
2624 - `defer_loading: optional boolean or null`
2625
2626 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2627
2628 - `enabled: optional boolean or null`
2629
2630 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2631
2632 - `read_network: optional BetaBrowserReadNetworkConfig or null`
2633
2634 `read_network`'s config overrides.
2635
2636 - `defer_loading: optional boolean or null`
2637
2638 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2639
2640 - `enabled: optional boolean or null`
2641
2642 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2643
2644 - `read_page: optional BetaBrowserReadPageConfig or null`
2645
2646 `read_page`'s config overrides.
2647
2648 - `defer_loading: optional boolean or null`
2649
2650 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2651
2652 - `enabled: optional boolean or null`
2653
2654 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2655
2656 - `right_click: optional BetaBrowserRightClickConfig or null`
2657
2658 `right_click`'s config overrides.
2659
2660 - `defer_loading: optional boolean or null`
2661
2662 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2663
2664 - `enabled: optional boolean or null`
2665
2666 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2667
2668 - `screenshot: optional BetaBrowserScreenshotConfig or null`
2669
2670 `screenshot`'s config overrides.
2671
2672 - `defer_loading: optional boolean or null`
2673
2674 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2675
2676 - `enabled: optional boolean or null`
2677
2678 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2679
2680 - `scroll: optional BetaBrowserScrollConfig or null`
2681
2682 `scroll`'s config overrides.
2683
2684 - `defer_loading: optional boolean or null`
2685
2686 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2687
2688 - `enabled: optional boolean or null`
2689
2690 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2691
2692 - `scroll_to: optional BetaBrowserScrollToConfig or null`
2693
2694 `scroll_to`'s config overrides.
2695
2696 - `defer_loading: optional boolean or null`
2697
2698 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2699
2700 - `enabled: optional boolean or null`
2701
2702 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2703
2704 - `switch_tab: optional BetaBrowserSwitchTabConfig or null`
2705
2706 `switch_tab`'s config overrides.
2707
2708 - `defer_loading: optional boolean or null`
2709
2710 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2711
2712 - `enabled: optional boolean or null`
2713
2714 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2715
2716 - `triple_click: optional BetaBrowserTripleClickConfig or null`
2717
2718 `triple_click`'s config overrides.
2719
2720 - `defer_loading: optional boolean or null`
2721
2722 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2723
2724 - `enabled: optional boolean or null`
2725
2726 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2727
2728 - `type: optional BetaBrowserTypeConfig or null`
2729
2730 `type`'s config overrides.
2731
2732 - `defer_loading: optional boolean or null`
2733
2734 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2735
2736 - `enabled: optional boolean or null`
2737
2738 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2739
2740 - `wait: optional BetaBrowserWaitConfig or null`
2741
2742 `wait`'s config overrides.
2743
2744 - `defer_loading: optional boolean or null`
2745
2746 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2747
2748 - `enabled: optional boolean or null`
2749
2750 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2751
2752 - `zoom: optional BetaBrowserZoomConfig or null`
2753
2754 `zoom`'s config overrides.
2755
2756 - `defer_loading: optional boolean or null`
2757
2758 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2759
2760 - `enabled: optional boolean or null`
2761
2762 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2763
22502764 - `BetaToolComputerUse20241022 object { display_height_px, display_width_px, name, 7 more }`
22512765
22522766 - `display_height_px: number`
from line 2990
24762990 - `strict: optional boolean`
24772991
24782992 When true, guarantees schema validation on tool names and inputs
2993
2994 - `BetaComputerToolset20260801 object { type, allowed_callers, cache_control, configs }`
2995
2996 The computer toolset: a single `tools[]` entry (carrying no
2997 `name`) that declares the computer tool family. The model is
2998 served the family's tool with any members disabled via `configs`
2999 removed from its schema. Every member is enabled by default, zoom
3000 included. The single-tool options `display_number` and
3001 `enable_zoom` are not fields of a toolset entry — it carries only
3002 `type`, `configs`, and `cache_control`; zoom is controlled
3003 via `configs.zoom.enabled`.
3004
3005 - `type: "computer_toolset_20260801"`
3006
3007 - `"computer_toolset_20260801"`
3008
3009 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3010
3011 - `"direct"`
3012
3013 - `"code_execution_20250825"`
3014
3015 - `"code_execution_20260120"`
3016
3017 - `"code_execution_20260521"`
3018
3019 - `cache_control: optional BetaCacheControlEphemeral or null`
3020
3021 Create a cache control breakpoint at this content block.
3022
3023 - `configs: optional BetaComputerToolsetConfigs or null`
3024
3025 Per-member configuration for `computer_toolset_20260801`: one
3026 optional field per member tool, keyed by the member name — the same
3027 name the member's `tool_use` blocks carry. Every member is an
3028 accepted key, and a member's defaults apply wherever its key is
3029 absent. Unknown keys are rejected: the field set is this toolset
3030 version's complete member set.
3031
3032 - `cursor_position: optional BetaComputerCursorPositionConfig or null`
3033
3034 `cursor_position`'s config overrides.
3035
3036 - `defer_loading: optional boolean or null`
3037
3038 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3039
3040 - `enabled: optional boolean or null`
3041
3042 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3043
3044 - `double_click: optional BetaComputerDoubleClickConfig or null`
3045
3046 `double_click`'s config overrides.
3047
3048 - `defer_loading: optional boolean or null`
3049
3050 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3051
3052 - `enabled: optional boolean or null`
3053
3054 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3055
3056 - `hold_key: optional BetaComputerHoldKeyConfig or null`
3057
3058 `hold_key`'s config overrides.
3059
3060 - `defer_loading: optional boolean or null`
3061
3062 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3063
3064 - `enabled: optional boolean or null`
3065
3066 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3067
3068 - `key: optional BetaComputerKeyConfig or null`
3069
3070 `key`'s config overrides.
3071
3072 - `defer_loading: optional boolean or null`
3073
3074 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3075
3076 - `enabled: optional boolean or null`
3077
3078 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3079
3080 - `left_click: optional BetaComputerLeftClickConfig or null`
3081
3082 `left_click`'s config overrides.
3083
3084 - `defer_loading: optional boolean or null`
3085
3086 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3087
3088 - `enabled: optional boolean or null`
3089
3090 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3091
3092 - `left_click_drag: optional BetaComputerLeftClickDragConfig or null`
3093
3094 `left_click_drag`'s config overrides.
3095
3096 - `defer_loading: optional boolean or null`
3097
3098 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3099
3100 - `enabled: optional boolean or null`
3101
3102 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3103
3104 - `left_mouse_down: optional BetaComputerLeftMouseDownConfig or null`
3105
3106 `left_mouse_down`'s config overrides.
3107
3108 - `defer_loading: optional boolean or null`
3109
3110 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3111
3112 - `enabled: optional boolean or null`
3113
3114 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3115
3116 - `left_mouse_up: optional BetaComputerLeftMouseUpConfig or null`
3117
3118 `left_mouse_up`'s config overrides.
3119
3120 - `defer_loading: optional boolean or null`
3121
3122 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3123
3124 - `enabled: optional boolean or null`
3125
3126 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3127
3128 - `middle_click: optional BetaComputerMiddleClickConfig or null`
3129
3130 `middle_click`'s config overrides.
3131
3132 - `defer_loading: optional boolean or null`
3133
3134 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3135
3136 - `enabled: optional boolean or null`
3137
3138 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3139
3140 - `mouse_move: optional BetaComputerMouseMoveConfig or null`
3141
3142 `mouse_move`'s config overrides.
3143
3144 - `defer_loading: optional boolean or null`
3145
3146 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3147
3148 - `enabled: optional boolean or null`
3149
3150 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3151
3152 - `right_click: optional BetaComputerRightClickConfig or null`
3153
3154 `right_click`'s config overrides.
3155
3156 - `defer_loading: optional boolean or null`
3157
3158 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3159
3160 - `enabled: optional boolean or null`
3161
3162 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3163
3164 - `screenshot: optional BetaComputerScreenshotConfig or null`
3165
3166 `screenshot`'s config overrides.
3167
3168 - `defer_loading: optional boolean or null`
3169
3170 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3171
3172 - `enabled: optional boolean or null`
3173
3174 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3175
3176 - `scroll: optional BetaComputerScrollConfig or null`
3177
3178 `scroll`'s config overrides.
3179
3180 - `defer_loading: optional boolean or null`
3181
3182 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3183
3184 - `enabled: optional boolean or null`
3185
3186 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3187
3188 - `triple_click: optional BetaComputerTripleClickConfig or null`
3189
3190 `triple_click`'s config overrides.
3191
3192 - `defer_loading: optional boolean or null`
3193
3194 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3195
3196 - `enabled: optional boolean or null`
3197
3198 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3199
3200 - `type: optional BetaComputerTypeConfig or null`
3201
3202 `type`'s config overrides.
3203
3204 - `defer_loading: optional boolean or null`
3205
3206 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3207
3208 - `enabled: optional boolean or null`
3209
3210 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3211
3212 - `wait: optional BetaComputerWaitConfig or null`
3213
3214 `wait`'s config overrides.
3215
3216 - `defer_loading: optional boolean or null`
3217
3218 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3219
3220 - `enabled: optional boolean or null`
3221
3222 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3223
3224 - `zoom: optional BetaComputerZoomConfig or null`
3225
3226 `zoom`'s config overrides.
3227
3228 - `defer_loading: optional boolean or null`
3229
3230 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3231
3232 - `enabled: optional boolean or null`
3233
3234 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
24793235
24803236 - `BetaToolTextEditor20250124 object { name, type, allowed_callers, 4 more }`
24813237
from line 4185
34294185
34304186 - `"redacted_thinking"`
34314187
3432 - `BetaToolUseBlock object { id, input, name, 2 more }`
4188 - `BetaToolUseBlock object { id, input, name, 3 more }`
34334189
34344190 - `id: string`
34354191
from line 4226
34704226 - `type: "code_execution_20260120"`
34714227
34724228 - `"code_execution_20260120"`
4229
4230 - `toolset_name: optional string or null`
4231
4232 For a toolset member tool_use, the toolset family.
34734233
34744234 - `BetaServerToolUseBlock object { id, input, name, 2 more }`
34754235
from line 5520
47605520 "role": "user"
47615521 }
47625522 ],
4763 "model": "claude-opus-4-6",
5523 "model": "claude-opus-5",
47645524 "stream": false,
47655525 "system": [
47665526 {
from line 5600
48405600 "type": "model_changed"
48415601 }
48425602 },
4843 "model": "claude-opus-4-6",
5603 "model": "claude-opus-5",
48445604 "role": "assistant",
48455605 "stop_details": {
48465606 "category": "cyber",
48475607 "explanation": "This request was declined because it conflicts with Anthropic's Usage Policy.",
48485608 "fallback_credit_token": "QW50aHJvcGljL0NsYXVkZQ==",
48495609 "fallback_has_prefill_claim": true,
4850 "recommended_model": "claude-sonnet-4-6",
5610 "recommended_model": "claude-opus-4-8",
48515611 "type": "refusal"
48525612 },
48535613 "stop_reason": "end_turn",
48545614
No line in this hunk matches that.