@anthropic-ai/sdk 0.118.0 → 0.120.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/helpers/beta/environments.d.mts +5 -4
- package/helpers/beta/environments.d.mts.map +1 -1
- package/helpers/beta/environments.d.ts +5 -4
- package/helpers/beta/environments.d.ts.map +1 -1
- package/helpers/beta/environments.js +5 -4
- package/helpers/beta/environments.js.map +1 -1
- package/helpers/beta/environments.mjs +5 -4
- package/helpers/beta/environments.mjs.map +1 -1
- package/internal/file-store.d.mts +136 -0
- package/internal/file-store.d.mts.map +1 -0
- package/internal/file-store.d.ts +136 -0
- package/internal/file-store.d.ts.map +1 -0
- package/internal/file-store.js +531 -0
- package/internal/file-store.js.map +1 -0
- package/internal/file-store.mjs +523 -0
- package/internal/file-store.mjs.map +1 -0
- package/lib/environments/poller.d.mts +6 -0
- package/lib/environments/poller.d.mts.map +1 -1
- package/lib/environments/poller.d.ts +6 -0
- package/lib/environments/poller.d.ts.map +1 -1
- package/lib/environments/poller.js +46 -1
- package/lib/environments/poller.js.map +1 -1
- package/lib/environments/poller.mjs +46 -1
- package/lib/environments/poller.mjs.map +1 -1
- package/lib/environments/worker.d.mts +89 -12
- package/lib/environments/worker.d.mts.map +1 -1
- package/lib/environments/worker.d.ts +89 -12
- package/lib/environments/worker.d.ts.map +1 -1
- package/lib/environments/worker.js +336 -67
- package/lib/environments/worker.js.map +1 -1
- package/lib/environments/worker.mjs +336 -68
- package/lib/environments/worker.mjs.map +1 -1
- package/lib/tools/BetaRunnableTool.d.mts +4 -1
- package/lib/tools/BetaRunnableTool.d.mts.map +1 -1
- package/lib/tools/BetaRunnableTool.d.ts +4 -1
- package/lib/tools/BetaRunnableTool.d.ts.map +1 -1
- package/lib/tools/BetaRunnableTool.js +7 -2
- package/lib/tools/BetaRunnableTool.js.map +1 -1
- package/lib/tools/BetaRunnableTool.mjs +7 -2
- package/lib/tools/BetaRunnableTool.mjs.map +1 -1
- package/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/lib/tools/BetaToolRunner.js +3 -1
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +3 -1
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/agents/agents.d.mts +322 -27
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +322 -27
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/index.d.mts +1 -1
- package/resources/beta/agents/index.d.mts.map +1 -1
- package/resources/beta/agents/index.d.ts +1 -1
- package/resources/beta/agents/index.d.ts.map +1 -1
- package/resources/beta/agents/index.js.map +1 -1
- package/resources/beta/agents/index.mjs.map +1 -1
- package/resources/beta/beta.d.mts +6 -6
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +6 -6
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/environments/work.d.mts +5 -1
- package/resources/beta/environments/work.d.mts.map +1 -1
- package/resources/beta/environments/work.d.ts +5 -1
- package/resources/beta/environments/work.d.ts.map +1 -1
- package/resources/beta/environments/work.js +0 -17
- package/resources/beta/environments/work.js.map +1 -1
- package/resources/beta/environments/work.mjs +0 -17
- package/resources/beta/environments/work.mjs.map +1 -1
- package/resources/beta/files.d.mts +22 -22
- package/resources/beta/files.d.mts.map +1 -1
- package/resources/beta/files.d.ts +22 -22
- package/resources/beta/files.d.ts.map +1 -1
- package/resources/beta/files.js +4 -4
- package/resources/beta/files.js.map +1 -1
- package/resources/beta/files.mjs +4 -4
- package/resources/beta/files.mjs.map +1 -1
- package/resources/beta/index.d.mts +3 -3
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +3 -3
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +1202 -5
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +1202 -5
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/files.d.mts +105 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +105 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +52 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +48 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +1267 -7
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +1267 -7
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/skills/index.d.mts +3 -0
- package/resources/skills/index.d.mts.map +1 -0
- package/resources/skills/index.d.ts +3 -0
- package/resources/skills/index.d.ts.map +1 -0
- package/resources/skills/index.js +9 -0
- package/resources/skills/index.js.map +1 -0
- package/resources/skills/index.mjs +4 -0
- package/resources/skills/index.mjs.map +1 -0
- package/resources/skills/skills.d.mts +129 -0
- package/resources/skills/skills.d.mts.map +1 -0
- package/resources/skills/skills.d.ts +129 -0
- package/resources/skills/skills.d.ts.map +1 -0
- package/resources/skills/skills.js +44 -0
- package/resources/skills/skills.js.map +1 -0
- package/resources/skills/skills.mjs +39 -0
- package/resources/skills/skills.mjs.map +1 -0
- package/resources/skills/versions.d.mts +104 -0
- package/resources/skills/versions.d.mts.map +1 -0
- package/resources/skills/versions.d.ts +104 -0
- package/resources/skills/versions.d.ts.map +1 -0
- package/resources/skills/versions.js +41 -0
- package/resources/skills/versions.js.map +1 -0
- package/resources/skills/versions.mjs +37 -0
- package/resources/skills/versions.mjs.map +1 -0
- package/resources/skills.d.mts +2 -0
- package/resources/skills.d.mts.map +1 -0
- package/resources/skills.d.ts +2 -0
- package/resources/skills.d.ts.map +1 -0
- package/resources/skills.js +6 -0
- package/resources/skills.js.map +1 -0
- package/resources/skills.mjs +3 -0
- package/resources/skills.mjs.map +1 -0
- package/src/client.ts +172 -0
- package/src/helpers/beta/environments.ts +5 -4
- package/src/internal/file-store.ts +550 -0
- package/src/lib/environments/poller.ts +47 -1
- package/src/lib/environments/worker.ts +419 -79
- package/src/lib/tools/BetaRunnableTool.ts +9 -2
- package/src/lib/tools/BetaToolRunner.ts +6 -1
- package/src/resources/beta/agents/agents.ts +435 -30
- package/src/resources/beta/agents/index.ts +17 -0
- package/src/resources/beta/beta.ts +160 -6
- package/src/resources/beta/environments/work.ts +7 -0
- package/src/resources/beta/files.ts +27 -27
- package/src/resources/beta/index.ts +80 -3
- package/src/resources/beta/messages/index.ts +60 -0
- package/src/resources/beta/messages/messages.ts +1865 -415
- package/src/resources/files.ts +163 -0
- package/src/resources/index.ts +83 -0
- package/src/resources/messages/index.ts +66 -0
- package/src/resources/messages/messages.ts +1648 -115
- package/src/resources/skills/index.ts +21 -0
- package/src/resources/skills/skills.ts +194 -0
- package/src/resources/skills/versions.ts +160 -0
- package/src/resources/skills.ts +3 -0
- package/src/tools/agent-toolset/fs-util.ts +40 -24
- package/src/tools/agent-toolset/memories.ts +1017 -0
- package/src/tools/agent-toolset/node.browser.ts +68 -0
- package/src/tools/agent-toolset/node.ts +139 -53
- package/src/tools/agent-toolset/skills.ts +29 -9
- package/src/tools/agent-toolset/sync-interval.ts +30 -0
- package/src/version.ts +1 -1
- package/tools/agent-toolset/fs-util.d.mts +23 -10
- package/tools/agent-toolset/fs-util.d.mts.map +1 -1
- package/tools/agent-toolset/fs-util.d.ts +23 -10
- package/tools/agent-toolset/fs-util.d.ts.map +1 -1
- package/tools/agent-toolset/fs-util.js +40 -25
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +38 -25
- package/tools/agent-toolset/fs-util.mjs.map +1 -1
- package/tools/agent-toolset/memories.d.mts +173 -0
- package/tools/agent-toolset/memories.d.mts.map +1 -0
- package/tools/agent-toolset/memories.d.ts +173 -0
- package/tools/agent-toolset/memories.d.ts.map +1 -0
- package/tools/agent-toolset/memories.js +902 -0
- package/tools/agent-toolset/memories.js.map +1 -0
- package/tools/agent-toolset/memories.mjs +895 -0
- package/tools/agent-toolset/memories.mjs.map +1 -0
- package/tools/agent-toolset/node.browser.d.mts +31 -0
- package/tools/agent-toolset/node.browser.d.mts.map +1 -1
- package/tools/agent-toolset/node.browser.d.ts +31 -0
- package/tools/agent-toolset/node.browser.d.ts.map +1 -1
- package/tools/agent-toolset/node.browser.js +59 -1
- package/tools/agent-toolset/node.browser.js.map +1 -1
- package/tools/agent-toolset/node.browser.mjs +54 -0
- package/tools/agent-toolset/node.browser.mjs.map +1 -1
- package/tools/agent-toolset/node.d.mts +54 -22
- package/tools/agent-toolset/node.d.mts.map +1 -1
- package/tools/agent-toolset/node.d.ts +54 -22
- package/tools/agent-toolset/node.d.ts.map +1 -1
- package/tools/agent-toolset/node.js +83 -44
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs +77 -44
- package/tools/agent-toolset/node.mjs.map +1 -1
- package/tools/agent-toolset/skills.d.mts +16 -7
- package/tools/agent-toolset/skills.d.mts.map +1 -1
- package/tools/agent-toolset/skills.d.ts +16 -7
- package/tools/agent-toolset/skills.d.ts.map +1 -1
- package/tools/agent-toolset/skills.js +27 -9
- package/tools/agent-toolset/skills.js.map +1 -1
- package/tools/agent-toolset/skills.mjs +27 -9
- package/tools/agent-toolset/skills.mjs.map +1 -1
- package/tools/agent-toolset/sync-interval.d.mts +19 -0
- package/tools/agent-toolset/sync-interval.d.mts.map +1 -0
- package/tools/agent-toolset/sync-interval.d.ts +19 -0
- package/tools/agent-toolset/sync-interval.d.ts.map +1 -0
- package/tools/agent-toolset/sync-interval.js +29 -0
- package/tools/agent-toolset/sync-interval.js.map +1 -0
- package/tools/agent-toolset/sync-interval.mjs +25 -0
- package/tools/agent-toolset/sync-interval.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -290,6 +290,920 @@ export interface BashCodeExecutionToolResultErrorParam {
|
|
|
290
290
|
type: 'bash_code_execution_tool_result_error';
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
/**
|
|
294
|
+
* `close_tab`'s config overrides.
|
|
295
|
+
*/
|
|
296
|
+
export interface BrowserCloseTabConfig {
|
|
297
|
+
/**
|
|
298
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
299
|
+
* member of the toolset.
|
|
300
|
+
*/
|
|
301
|
+
defer_loading?: boolean | null;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
305
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
306
|
+
* the served schema.
|
|
307
|
+
*/
|
|
308
|
+
enabled?: boolean | null;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* `double_click`'s config overrides.
|
|
313
|
+
*/
|
|
314
|
+
export interface BrowserDoubleClickConfig {
|
|
315
|
+
/**
|
|
316
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
317
|
+
* member of the toolset.
|
|
318
|
+
*/
|
|
319
|
+
defer_loading?: boolean | null;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
323
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
324
|
+
* the served schema.
|
|
325
|
+
*/
|
|
326
|
+
enabled?: boolean | null;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* `file_upload`'s config overrides.
|
|
331
|
+
*/
|
|
332
|
+
export interface BrowserFileUploadConfig {
|
|
333
|
+
/**
|
|
334
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
335
|
+
* member of the toolset.
|
|
336
|
+
*/
|
|
337
|
+
defer_loading?: boolean | null;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
341
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
342
|
+
* the served schema.
|
|
343
|
+
*/
|
|
344
|
+
enabled?: boolean | null;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* `find`'s config overrides.
|
|
349
|
+
*/
|
|
350
|
+
export interface BrowserFindConfig {
|
|
351
|
+
/**
|
|
352
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
353
|
+
* member of the toolset.
|
|
354
|
+
*/
|
|
355
|
+
defer_loading?: boolean | null;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
359
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
360
|
+
* the served schema.
|
|
361
|
+
*/
|
|
362
|
+
enabled?: boolean | null;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* `form_input`'s config overrides.
|
|
367
|
+
*/
|
|
368
|
+
export interface BrowserFormInputConfig {
|
|
369
|
+
/**
|
|
370
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
371
|
+
* member of the toolset.
|
|
372
|
+
*/
|
|
373
|
+
defer_loading?: boolean | null;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
377
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
378
|
+
* the served schema.
|
|
379
|
+
*/
|
|
380
|
+
enabled?: boolean | null;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* `get_page_text`'s config overrides.
|
|
385
|
+
*/
|
|
386
|
+
export interface BrowserGetPageTextConfig {
|
|
387
|
+
/**
|
|
388
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
389
|
+
* member of the toolset.
|
|
390
|
+
*/
|
|
391
|
+
defer_loading?: boolean | null;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
395
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
396
|
+
* the served schema.
|
|
397
|
+
*/
|
|
398
|
+
enabled?: boolean | null;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* `hold_key`'s config overrides.
|
|
403
|
+
*/
|
|
404
|
+
export interface BrowserHoldKeyConfig {
|
|
405
|
+
/**
|
|
406
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
407
|
+
* member of the toolset.
|
|
408
|
+
*/
|
|
409
|
+
defer_loading?: boolean | null;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
413
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
414
|
+
* the served schema.
|
|
415
|
+
*/
|
|
416
|
+
enabled?: boolean | null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* `hover`'s config overrides.
|
|
421
|
+
*/
|
|
422
|
+
export interface BrowserHoverConfig {
|
|
423
|
+
/**
|
|
424
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
425
|
+
* member of the toolset.
|
|
426
|
+
*/
|
|
427
|
+
defer_loading?: boolean | null;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
431
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
432
|
+
* the served schema.
|
|
433
|
+
*/
|
|
434
|
+
enabled?: boolean | null;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* `javascript_exec`'s config overrides.
|
|
439
|
+
*/
|
|
440
|
+
export interface BrowserJavascriptExecConfig {
|
|
441
|
+
/**
|
|
442
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
443
|
+
* member of the toolset.
|
|
444
|
+
*/
|
|
445
|
+
defer_loading?: boolean | null;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
449
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
450
|
+
* the served schema.
|
|
451
|
+
*/
|
|
452
|
+
enabled?: boolean | null;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* `key`'s config overrides.
|
|
457
|
+
*/
|
|
458
|
+
export interface BrowserKeyConfig {
|
|
459
|
+
/**
|
|
460
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
461
|
+
* member of the toolset.
|
|
462
|
+
*/
|
|
463
|
+
defer_loading?: boolean | null;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
467
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
468
|
+
* the served schema.
|
|
469
|
+
*/
|
|
470
|
+
enabled?: boolean | null;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* `left_click`'s config overrides.
|
|
475
|
+
*/
|
|
476
|
+
export interface BrowserLeftClickConfig {
|
|
477
|
+
/**
|
|
478
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
479
|
+
* member of the toolset.
|
|
480
|
+
*/
|
|
481
|
+
defer_loading?: boolean | null;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
485
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
486
|
+
* the served schema.
|
|
487
|
+
*/
|
|
488
|
+
enabled?: boolean | null;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* `left_click_drag`'s config overrides.
|
|
493
|
+
*/
|
|
494
|
+
export interface BrowserLeftClickDragConfig {
|
|
495
|
+
/**
|
|
496
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
497
|
+
* member of the toolset.
|
|
498
|
+
*/
|
|
499
|
+
defer_loading?: boolean | null;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
503
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
504
|
+
* the served schema.
|
|
505
|
+
*/
|
|
506
|
+
enabled?: boolean | null;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* `left_mouse_down`'s config overrides.
|
|
511
|
+
*/
|
|
512
|
+
export interface BrowserLeftMouseDownConfig {
|
|
513
|
+
/**
|
|
514
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
515
|
+
* member of the toolset.
|
|
516
|
+
*/
|
|
517
|
+
defer_loading?: boolean | null;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
521
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
522
|
+
* the served schema.
|
|
523
|
+
*/
|
|
524
|
+
enabled?: boolean | null;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* `left_mouse_up`'s config overrides.
|
|
529
|
+
*/
|
|
530
|
+
export interface BrowserLeftMouseUpConfig {
|
|
531
|
+
/**
|
|
532
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
533
|
+
* member of the toolset.
|
|
534
|
+
*/
|
|
535
|
+
defer_loading?: boolean | null;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
539
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
540
|
+
* the served schema.
|
|
541
|
+
*/
|
|
542
|
+
enabled?: boolean | null;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* `list_tabs`'s config overrides.
|
|
547
|
+
*/
|
|
548
|
+
export interface BrowserListTabsConfig {
|
|
549
|
+
/**
|
|
550
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
551
|
+
* member of the toolset.
|
|
552
|
+
*/
|
|
553
|
+
defer_loading?: boolean | null;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
557
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
558
|
+
* the served schema.
|
|
559
|
+
*/
|
|
560
|
+
enabled?: boolean | null;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* `middle_click`'s config overrides.
|
|
565
|
+
*/
|
|
566
|
+
export interface BrowserMiddleClickConfig {
|
|
567
|
+
/**
|
|
568
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
569
|
+
* member of the toolset.
|
|
570
|
+
*/
|
|
571
|
+
defer_loading?: boolean | null;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
575
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
576
|
+
* the served schema.
|
|
577
|
+
*/
|
|
578
|
+
enabled?: boolean | null;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* `mouse_move`'s config overrides.
|
|
583
|
+
*/
|
|
584
|
+
export interface BrowserMouseMoveConfig {
|
|
585
|
+
/**
|
|
586
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
587
|
+
* member of the toolset.
|
|
588
|
+
*/
|
|
589
|
+
defer_loading?: boolean | null;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
593
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
594
|
+
* the served schema.
|
|
595
|
+
*/
|
|
596
|
+
enabled?: boolean | null;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* `navigate`'s config overrides.
|
|
601
|
+
*/
|
|
602
|
+
export interface BrowserNavigateConfig {
|
|
603
|
+
/**
|
|
604
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
605
|
+
* member of the toolset.
|
|
606
|
+
*/
|
|
607
|
+
defer_loading?: boolean | null;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
611
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
612
|
+
* the served schema.
|
|
613
|
+
*/
|
|
614
|
+
enabled?: boolean | null;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* `new_tab`'s config overrides.
|
|
619
|
+
*/
|
|
620
|
+
export interface BrowserNewTabConfig {
|
|
621
|
+
/**
|
|
622
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
623
|
+
* member of the toolset.
|
|
624
|
+
*/
|
|
625
|
+
defer_loading?: boolean | null;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
629
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
630
|
+
* the served schema.
|
|
631
|
+
*/
|
|
632
|
+
enabled?: boolean | null;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* `read_console`'s config overrides.
|
|
637
|
+
*/
|
|
638
|
+
export interface BrowserReadConsoleConfig {
|
|
639
|
+
/**
|
|
640
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
641
|
+
* member of the toolset.
|
|
642
|
+
*/
|
|
643
|
+
defer_loading?: boolean | null;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
647
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
648
|
+
* the served schema.
|
|
649
|
+
*/
|
|
650
|
+
enabled?: boolean | null;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* `read_network`'s config overrides.
|
|
655
|
+
*/
|
|
656
|
+
export interface BrowserReadNetworkConfig {
|
|
657
|
+
/**
|
|
658
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
659
|
+
* member of the toolset.
|
|
660
|
+
*/
|
|
661
|
+
defer_loading?: boolean | null;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
665
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
666
|
+
* the served schema.
|
|
667
|
+
*/
|
|
668
|
+
enabled?: boolean | null;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* `read_page`'s config overrides.
|
|
673
|
+
*/
|
|
674
|
+
export interface BrowserReadPageConfig {
|
|
675
|
+
/**
|
|
676
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
677
|
+
* member of the toolset.
|
|
678
|
+
*/
|
|
679
|
+
defer_loading?: boolean | null;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
683
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
684
|
+
* the served schema.
|
|
685
|
+
*/
|
|
686
|
+
enabled?: boolean | null;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* `right_click`'s config overrides.
|
|
691
|
+
*/
|
|
692
|
+
export interface BrowserRightClickConfig {
|
|
693
|
+
/**
|
|
694
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
695
|
+
* member of the toolset.
|
|
696
|
+
*/
|
|
697
|
+
defer_loading?: boolean | null;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
701
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
702
|
+
* the served schema.
|
|
703
|
+
*/
|
|
704
|
+
enabled?: boolean | null;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* `screenshot`'s config overrides.
|
|
709
|
+
*/
|
|
710
|
+
export interface BrowserScreenshotConfig {
|
|
711
|
+
/**
|
|
712
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
713
|
+
* member of the toolset.
|
|
714
|
+
*/
|
|
715
|
+
defer_loading?: boolean | null;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
719
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
720
|
+
* the served schema.
|
|
721
|
+
*/
|
|
722
|
+
enabled?: boolean | null;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* `scroll`'s config overrides.
|
|
727
|
+
*/
|
|
728
|
+
export interface BrowserScrollConfig {
|
|
729
|
+
/**
|
|
730
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
731
|
+
* member of the toolset.
|
|
732
|
+
*/
|
|
733
|
+
defer_loading?: boolean | null;
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
737
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
738
|
+
* the served schema.
|
|
739
|
+
*/
|
|
740
|
+
enabled?: boolean | null;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* `scroll_to`'s config overrides.
|
|
745
|
+
*/
|
|
746
|
+
export interface BrowserScrollToConfig {
|
|
747
|
+
/**
|
|
748
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
749
|
+
* member of the toolset.
|
|
750
|
+
*/
|
|
751
|
+
defer_loading?: boolean | null;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
755
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
756
|
+
* the served schema.
|
|
757
|
+
*/
|
|
758
|
+
enabled?: boolean | null;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* The caller's browser state after a browser toolset member call — the full
|
|
763
|
+
* inventory of open tabs, which tab is active, and any side effects (tabs opened,
|
|
764
|
+
* download state changes) the call produced.
|
|
765
|
+
*
|
|
766
|
+
* At most one per `tool_result`, only on a non-error result answering a browser
|
|
767
|
+
* toolset member `tool_use`. The server renders the model-visible text from it;
|
|
768
|
+
* the model never sees the raw fields.
|
|
769
|
+
*/
|
|
770
|
+
export interface BrowserStateBlockParam {
|
|
771
|
+
/**
|
|
772
|
+
* All tabs open in the browser after this call — the full inventory, not a delta.
|
|
773
|
+
* May be empty. Whenever non-empty, exactly one entry carries `active: true`.
|
|
774
|
+
*/
|
|
775
|
+
tabs: Array<BrowserStateTabEntry>;
|
|
776
|
+
|
|
777
|
+
type: 'browser_state';
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Create a cache control breakpoint at this content block.
|
|
781
|
+
*/
|
|
782
|
+
cache_control?: CacheControlEphemeral | null;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Tabs opened and download state changes during this call. "Nothing to report" is
|
|
786
|
+
* expressed by omitting the field, never by an empty list.
|
|
787
|
+
*/
|
|
788
|
+
state_changes?: Array<BrowserStateChange> | null;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
793
|
+
* delta of the `tabs` inventory, not an event log.
|
|
794
|
+
*
|
|
795
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
796
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
797
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
798
|
+
*/
|
|
799
|
+
export type BrowserStateChange =
|
|
800
|
+
| BrowserStateChangeTabOpened
|
|
801
|
+
| BrowserStateChangeDownloadStarted
|
|
802
|
+
| BrowserStateChangeDownloadCompleted
|
|
803
|
+
| BrowserStateChangeDownloadFailed;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* A file download that finished during this call, reported with the same
|
|
807
|
+
* `download_id` as its `download_started` — or without a prior `download_started`,
|
|
808
|
+
* when the download finished during the call that started it (at most one state
|
|
809
|
+
* change per `download_id` per result).
|
|
810
|
+
*/
|
|
811
|
+
export interface BrowserStateChangeDownloadCompleted {
|
|
812
|
+
/**
|
|
813
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
814
|
+
* changes reporting it.
|
|
815
|
+
*/
|
|
816
|
+
download_id: string;
|
|
817
|
+
|
|
818
|
+
type: 'download_completed';
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* The final post-redirect URL the download was served from.
|
|
822
|
+
*/
|
|
823
|
+
url: string;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Where the executor saved the file, on the executor's filesystem. Only included
|
|
827
|
+
* when another tool in the same environment can read the file at that path.
|
|
828
|
+
*/
|
|
829
|
+
path?: string | null;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* The completed download's size.
|
|
833
|
+
*/
|
|
834
|
+
size_bytes?: number | null;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* A file download that failed — or was cancelled — during this call.
|
|
839
|
+
*/
|
|
840
|
+
export interface BrowserStateChangeDownloadFailed {
|
|
841
|
+
/**
|
|
842
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
843
|
+
* changes reporting it.
|
|
844
|
+
*/
|
|
845
|
+
download_id: string;
|
|
846
|
+
|
|
847
|
+
type: 'download_failed';
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* The final post-redirect URL the download was served from.
|
|
851
|
+
*/
|
|
852
|
+
url: string;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* The failure or cancellation detail, when known.
|
|
856
|
+
*/
|
|
857
|
+
error?: string | null;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* A file download that started during this call.
|
|
862
|
+
*/
|
|
863
|
+
export interface BrowserStateChangeDownloadStarted {
|
|
864
|
+
/**
|
|
865
|
+
* The caller-assigned identifier for this download, stable across the state
|
|
866
|
+
* changes reporting it.
|
|
867
|
+
*/
|
|
868
|
+
download_id: string;
|
|
869
|
+
|
|
870
|
+
type: 'download_started';
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* The final post-redirect URL the download was served from.
|
|
874
|
+
*/
|
|
875
|
+
url: string;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* A tab this call's execution opened that remains open at its end — the creation
|
|
880
|
+
* delta of the `tabs` inventory, not an event log.
|
|
881
|
+
*
|
|
882
|
+
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
883
|
+
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
884
|
+
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
885
|
+
*/
|
|
886
|
+
export interface BrowserStateChangeTabOpened {
|
|
887
|
+
/**
|
|
888
|
+
* The `tab_id` of the opened tab, present in `tabs`.
|
|
889
|
+
*/
|
|
890
|
+
tab_id: string;
|
|
891
|
+
|
|
892
|
+
type: 'tab_opened';
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* One open browser tab reported in a `browser_state` block's `tabs` inventory.
|
|
897
|
+
*
|
|
898
|
+
* `tab_id` is the caller-assigned identifier for the tab; `title` and `url`
|
|
899
|
+
* describe the page the tab is currently showing and may be empty strings (a blank
|
|
900
|
+
* tab legitimately has both empty). `active` marks the tab that is active after
|
|
901
|
+
* this call; whenever `tabs` is non-empty, exactly one entry is marked.
|
|
902
|
+
*/
|
|
903
|
+
export interface BrowserStateTabEntry {
|
|
904
|
+
/**
|
|
905
|
+
* The caller-assigned identifier for this tab, unique within the inventory.
|
|
906
|
+
*/
|
|
907
|
+
tab_id: string;
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* The title of the page the tab is showing. May be empty.
|
|
911
|
+
*/
|
|
912
|
+
title: string;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* The URL of the page the tab is showing. May be empty.
|
|
916
|
+
*/
|
|
917
|
+
url: string;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Whether this tab is the active tab after this call. Whenever `tabs` is
|
|
921
|
+
* non-empty, exactly one entry is marked `active: true`.
|
|
922
|
+
*/
|
|
923
|
+
active?: boolean;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* `switch_tab`'s config overrides.
|
|
928
|
+
*/
|
|
929
|
+
export interface BrowserSwitchTabConfig {
|
|
930
|
+
/**
|
|
931
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
932
|
+
* member of the toolset.
|
|
933
|
+
*/
|
|
934
|
+
defer_loading?: boolean | null;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
938
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
939
|
+
* the served schema.
|
|
940
|
+
*/
|
|
941
|
+
enabled?: boolean | null;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* The browser toolset: a single `tools[]` entry (carrying no `name`) that declares
|
|
946
|
+
* the browser tool family. The model is served the family's tool with any members
|
|
947
|
+
* disabled via `configs` removed from its schema.
|
|
948
|
+
*/
|
|
949
|
+
export interface BrowserToolset20260801 {
|
|
950
|
+
type: 'browser_toolset_20260801';
|
|
951
|
+
|
|
952
|
+
allowed_callers?: Array<
|
|
953
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
954
|
+
>;
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Create a cache control breakpoint at this content block.
|
|
958
|
+
*/
|
|
959
|
+
cache_control?: CacheControlEphemeral | null;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
963
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
964
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
965
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
966
|
+
* toolset version's complete member set.
|
|
967
|
+
*/
|
|
968
|
+
configs?: BrowserToolsetConfigs | null;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Per-member configuration for `browser_toolset_20260801`: one optional field per
|
|
973
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
974
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
975
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
976
|
+
* toolset version's complete member set.
|
|
977
|
+
*/
|
|
978
|
+
export interface BrowserToolsetConfigs {
|
|
979
|
+
/**
|
|
980
|
+
* `close_tab`'s config overrides.
|
|
981
|
+
*/
|
|
982
|
+
close_tab?: BrowserCloseTabConfig | null;
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* `double_click`'s config overrides.
|
|
986
|
+
*/
|
|
987
|
+
double_click?: BrowserDoubleClickConfig | null;
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* `file_upload`'s config overrides.
|
|
991
|
+
*/
|
|
992
|
+
file_upload?: BrowserFileUploadConfig | null;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* `find`'s config overrides.
|
|
996
|
+
*/
|
|
997
|
+
find?: BrowserFindConfig | null;
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* `form_input`'s config overrides.
|
|
1001
|
+
*/
|
|
1002
|
+
form_input?: BrowserFormInputConfig | null;
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* `get_page_text`'s config overrides.
|
|
1006
|
+
*/
|
|
1007
|
+
get_page_text?: BrowserGetPageTextConfig | null;
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* `hold_key`'s config overrides.
|
|
1011
|
+
*/
|
|
1012
|
+
hold_key?: BrowserHoldKeyConfig | null;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* `hover`'s config overrides.
|
|
1016
|
+
*/
|
|
1017
|
+
hover?: BrowserHoverConfig | null;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* `javascript_exec`'s config overrides.
|
|
1021
|
+
*/
|
|
1022
|
+
javascript_exec?: BrowserJavascriptExecConfig | null;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* `key`'s config overrides.
|
|
1026
|
+
*/
|
|
1027
|
+
key?: BrowserKeyConfig | null;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* `left_click`'s config overrides.
|
|
1031
|
+
*/
|
|
1032
|
+
left_click?: BrowserLeftClickConfig | null;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* `left_click_drag`'s config overrides.
|
|
1036
|
+
*/
|
|
1037
|
+
left_click_drag?: BrowserLeftClickDragConfig | null;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* `left_mouse_down`'s config overrides.
|
|
1041
|
+
*/
|
|
1042
|
+
left_mouse_down?: BrowserLeftMouseDownConfig | null;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* `left_mouse_up`'s config overrides.
|
|
1046
|
+
*/
|
|
1047
|
+
left_mouse_up?: BrowserLeftMouseUpConfig | null;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* `list_tabs`'s config overrides.
|
|
1051
|
+
*/
|
|
1052
|
+
list_tabs?: BrowserListTabsConfig | null;
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* `middle_click`'s config overrides.
|
|
1056
|
+
*/
|
|
1057
|
+
middle_click?: BrowserMiddleClickConfig | null;
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* `mouse_move`'s config overrides.
|
|
1061
|
+
*/
|
|
1062
|
+
mouse_move?: BrowserMouseMoveConfig | null;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* `navigate`'s config overrides.
|
|
1066
|
+
*/
|
|
1067
|
+
navigate?: BrowserNavigateConfig | null;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* `new_tab`'s config overrides.
|
|
1071
|
+
*/
|
|
1072
|
+
new_tab?: BrowserNewTabConfig | null;
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* `read_console`'s config overrides.
|
|
1076
|
+
*/
|
|
1077
|
+
read_console?: BrowserReadConsoleConfig | null;
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* `read_network`'s config overrides.
|
|
1081
|
+
*/
|
|
1082
|
+
read_network?: BrowserReadNetworkConfig | null;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* `read_page`'s config overrides.
|
|
1086
|
+
*/
|
|
1087
|
+
read_page?: BrowserReadPageConfig | null;
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* `right_click`'s config overrides.
|
|
1091
|
+
*/
|
|
1092
|
+
right_click?: BrowserRightClickConfig | null;
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* `screenshot`'s config overrides.
|
|
1096
|
+
*/
|
|
1097
|
+
screenshot?: BrowserScreenshotConfig | null;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* `scroll`'s config overrides.
|
|
1101
|
+
*/
|
|
1102
|
+
scroll?: BrowserScrollConfig | null;
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* `scroll_to`'s config overrides.
|
|
1106
|
+
*/
|
|
1107
|
+
scroll_to?: BrowserScrollToConfig | null;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* `switch_tab`'s config overrides.
|
|
1111
|
+
*/
|
|
1112
|
+
switch_tab?: BrowserSwitchTabConfig | null;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* `triple_click`'s config overrides.
|
|
1116
|
+
*/
|
|
1117
|
+
triple_click?: BrowserTripleClickConfig | null;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* `type`'s config overrides.
|
|
1121
|
+
*/
|
|
1122
|
+
type?: BrowserTypeConfig | null;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* `wait`'s config overrides.
|
|
1126
|
+
*/
|
|
1127
|
+
wait?: BrowserWaitConfig | null;
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* `zoom`'s config overrides.
|
|
1131
|
+
*/
|
|
1132
|
+
zoom?: BrowserZoomConfig | null;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* `triple_click`'s config overrides.
|
|
1137
|
+
*/
|
|
1138
|
+
export interface BrowserTripleClickConfig {
|
|
1139
|
+
/**
|
|
1140
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1141
|
+
* member of the toolset.
|
|
1142
|
+
*/
|
|
1143
|
+
defer_loading?: boolean | null;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1147
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1148
|
+
* the served schema.
|
|
1149
|
+
*/
|
|
1150
|
+
enabled?: boolean | null;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* `type`'s config overrides.
|
|
1155
|
+
*/
|
|
1156
|
+
export interface BrowserTypeConfig {
|
|
1157
|
+
/**
|
|
1158
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1159
|
+
* member of the toolset.
|
|
1160
|
+
*/
|
|
1161
|
+
defer_loading?: boolean | null;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1165
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1166
|
+
* the served schema.
|
|
1167
|
+
*/
|
|
1168
|
+
enabled?: boolean | null;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* `wait`'s config overrides.
|
|
1173
|
+
*/
|
|
1174
|
+
export interface BrowserWaitConfig {
|
|
1175
|
+
/**
|
|
1176
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1177
|
+
* member of the toolset.
|
|
1178
|
+
*/
|
|
1179
|
+
defer_loading?: boolean | null;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1183
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1184
|
+
* the served schema.
|
|
1185
|
+
*/
|
|
1186
|
+
enabled?: boolean | null;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* `zoom`'s config overrides.
|
|
1191
|
+
*/
|
|
1192
|
+
export interface BrowserZoomConfig {
|
|
1193
|
+
/**
|
|
1194
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1195
|
+
* member of the toolset.
|
|
1196
|
+
*/
|
|
1197
|
+
defer_loading?: boolean | null;
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1201
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1202
|
+
* the served schema.
|
|
1203
|
+
*/
|
|
1204
|
+
enabled?: boolean | null;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
293
1207
|
export interface CacheControlEphemeral {
|
|
294
1208
|
type: 'ephemeral';
|
|
295
1209
|
|
|
@@ -594,61 +1508,457 @@ export interface CodeExecutionResultBlock {
|
|
|
594
1508
|
|
|
595
1509
|
stdout: string;
|
|
596
1510
|
|
|
597
|
-
type: 'code_execution_result';
|
|
1511
|
+
type: 'code_execution_result';
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
export interface CodeExecutionResultBlockParam {
|
|
1515
|
+
content: Array<CodeExecutionOutputBlockParam>;
|
|
1516
|
+
|
|
1517
|
+
return_code: number;
|
|
1518
|
+
|
|
1519
|
+
stderr: string;
|
|
1520
|
+
|
|
1521
|
+
stdout: string;
|
|
1522
|
+
|
|
1523
|
+
type: 'code_execution_result';
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
export interface CodeExecutionTool20250522 {
|
|
1527
|
+
/**
|
|
1528
|
+
* Name of the tool.
|
|
1529
|
+
*
|
|
1530
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1531
|
+
*/
|
|
1532
|
+
name: 'code_execution';
|
|
1533
|
+
|
|
1534
|
+
type: 'code_execution_20250522';
|
|
1535
|
+
|
|
1536
|
+
allowed_callers?: Array<
|
|
1537
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1538
|
+
>;
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* Create a cache control breakpoint at this content block.
|
|
1542
|
+
*/
|
|
1543
|
+
cache_control?: CacheControlEphemeral | null;
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
1547
|
+
* returned via tool_reference from tool search.
|
|
1548
|
+
*/
|
|
1549
|
+
defer_loading?: boolean;
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
1553
|
+
*/
|
|
1554
|
+
strict?: boolean;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
export interface CodeExecutionTool20250825 {
|
|
1558
|
+
/**
|
|
1559
|
+
* Name of the tool.
|
|
1560
|
+
*
|
|
1561
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1562
|
+
*/
|
|
1563
|
+
name: 'code_execution';
|
|
1564
|
+
|
|
1565
|
+
type: 'code_execution_20250825';
|
|
1566
|
+
|
|
1567
|
+
allowed_callers?: Array<
|
|
1568
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1569
|
+
>;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Create a cache control breakpoint at this content block.
|
|
1573
|
+
*/
|
|
1574
|
+
cache_control?: CacheControlEphemeral | null;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
1578
|
+
* returned via tool_reference from tool search.
|
|
1579
|
+
*/
|
|
1580
|
+
defer_loading?: boolean;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
1584
|
+
*/
|
|
1585
|
+
strict?: boolean;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Code execution tool with REPL state persistence (daemon mode + gVisor
|
|
1590
|
+
* checkpoint).
|
|
1591
|
+
*/
|
|
1592
|
+
export interface CodeExecutionTool20260120 {
|
|
1593
|
+
/**
|
|
1594
|
+
* Name of the tool.
|
|
1595
|
+
*
|
|
1596
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1597
|
+
*/
|
|
1598
|
+
name: 'code_execution';
|
|
1599
|
+
|
|
1600
|
+
type: 'code_execution_20260120';
|
|
1601
|
+
|
|
1602
|
+
allowed_callers?: Array<
|
|
1603
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1604
|
+
>;
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* Create a cache control breakpoint at this content block.
|
|
1608
|
+
*/
|
|
1609
|
+
cache_control?: CacheControlEphemeral | null;
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
1613
|
+
* returned via tool_reference from tool search.
|
|
1614
|
+
*/
|
|
1615
|
+
defer_loading?: boolean;
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
1619
|
+
*/
|
|
1620
|
+
strict?: boolean;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* Code execution tool with REPL state persistence.
|
|
1625
|
+
*/
|
|
1626
|
+
export interface CodeExecutionTool20260521 {
|
|
1627
|
+
/**
|
|
1628
|
+
* Name of the tool.
|
|
1629
|
+
*
|
|
1630
|
+
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1631
|
+
*/
|
|
1632
|
+
name: 'code_execution';
|
|
1633
|
+
|
|
1634
|
+
type: 'code_execution_20260521';
|
|
1635
|
+
|
|
1636
|
+
allowed_callers?: Array<
|
|
1637
|
+
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
1638
|
+
>;
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* Create a cache control breakpoint at this content block.
|
|
1642
|
+
*/
|
|
1643
|
+
cache_control?: CacheControlEphemeral | null;
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
* If true, tool will not be included in initial system prompt. Only loaded when
|
|
1647
|
+
* returned via tool_reference from tool search.
|
|
1648
|
+
*/
|
|
1649
|
+
defer_loading?: boolean;
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* When true, guarantees schema validation on tool names and inputs
|
|
1653
|
+
*/
|
|
1654
|
+
strict?: boolean;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
export interface CodeExecutionToolResultBlock {
|
|
1658
|
+
/**
|
|
1659
|
+
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1660
|
+
*/
|
|
1661
|
+
content: CodeExecutionToolResultBlockContent;
|
|
1662
|
+
|
|
1663
|
+
tool_use_id: string;
|
|
1664
|
+
|
|
1665
|
+
type: 'code_execution_tool_result';
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
/**
|
|
1669
|
+
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1670
|
+
*/
|
|
1671
|
+
export type CodeExecutionToolResultBlockContent =
|
|
1672
|
+
| CodeExecutionToolResultError
|
|
1673
|
+
| CodeExecutionResultBlock
|
|
1674
|
+
| EncryptedCodeExecutionResultBlock;
|
|
1675
|
+
|
|
1676
|
+
export interface CodeExecutionToolResultBlockParam {
|
|
1677
|
+
/**
|
|
1678
|
+
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1679
|
+
*/
|
|
1680
|
+
content: CodeExecutionToolResultBlockParamContent;
|
|
1681
|
+
|
|
1682
|
+
tool_use_id: string;
|
|
1683
|
+
|
|
1684
|
+
type: 'code_execution_tool_result';
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Create a cache control breakpoint at this content block.
|
|
1688
|
+
*/
|
|
1689
|
+
cache_control?: CacheControlEphemeral | null;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
/**
|
|
1693
|
+
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1694
|
+
*/
|
|
1695
|
+
export type CodeExecutionToolResultBlockParamContent =
|
|
1696
|
+
| CodeExecutionToolResultErrorParam
|
|
1697
|
+
| CodeExecutionResultBlockParam
|
|
1698
|
+
| EncryptedCodeExecutionResultBlockParam;
|
|
1699
|
+
|
|
1700
|
+
export interface CodeExecutionToolResultError {
|
|
1701
|
+
error_code: CodeExecutionToolResultErrorCode;
|
|
1702
|
+
|
|
1703
|
+
type: 'code_execution_tool_result_error';
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
export type CodeExecutionToolResultErrorCode =
|
|
1707
|
+
| 'invalid_tool_input'
|
|
1708
|
+
| 'unavailable'
|
|
1709
|
+
| 'too_many_requests'
|
|
1710
|
+
| 'execution_time_exceeded';
|
|
1711
|
+
|
|
1712
|
+
export interface CodeExecutionToolResultErrorParam {
|
|
1713
|
+
error_code: CodeExecutionToolResultErrorCode;
|
|
1714
|
+
|
|
1715
|
+
type: 'code_execution_tool_result_error';
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* `cursor_position`'s config overrides.
|
|
1720
|
+
*/
|
|
1721
|
+
export interface ComputerCursorPositionConfig {
|
|
1722
|
+
/**
|
|
1723
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1724
|
+
* member of the toolset.
|
|
1725
|
+
*/
|
|
1726
|
+
defer_loading?: boolean | null;
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1730
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1731
|
+
* the served schema.
|
|
1732
|
+
*/
|
|
1733
|
+
enabled?: boolean | null;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* `double_click`'s config overrides.
|
|
1738
|
+
*/
|
|
1739
|
+
export interface ComputerDoubleClickConfig {
|
|
1740
|
+
/**
|
|
1741
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1742
|
+
* member of the toolset.
|
|
1743
|
+
*/
|
|
1744
|
+
defer_loading?: boolean | null;
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1748
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1749
|
+
* the served schema.
|
|
1750
|
+
*/
|
|
1751
|
+
enabled?: boolean | null;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* `hold_key`'s config overrides.
|
|
1756
|
+
*/
|
|
1757
|
+
export interface ComputerHoldKeyConfig {
|
|
1758
|
+
/**
|
|
1759
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1760
|
+
* member of the toolset.
|
|
1761
|
+
*/
|
|
1762
|
+
defer_loading?: boolean | null;
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1766
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1767
|
+
* the served schema.
|
|
1768
|
+
*/
|
|
1769
|
+
enabled?: boolean | null;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* `key`'s config overrides.
|
|
1774
|
+
*/
|
|
1775
|
+
export interface ComputerKeyConfig {
|
|
1776
|
+
/**
|
|
1777
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1778
|
+
* member of the toolset.
|
|
1779
|
+
*/
|
|
1780
|
+
defer_loading?: boolean | null;
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1784
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1785
|
+
* the served schema.
|
|
1786
|
+
*/
|
|
1787
|
+
enabled?: boolean | null;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* `left_click`'s config overrides.
|
|
1792
|
+
*/
|
|
1793
|
+
export interface ComputerLeftClickConfig {
|
|
1794
|
+
/**
|
|
1795
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1796
|
+
* member of the toolset.
|
|
1797
|
+
*/
|
|
1798
|
+
defer_loading?: boolean | null;
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1802
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1803
|
+
* the served schema.
|
|
1804
|
+
*/
|
|
1805
|
+
enabled?: boolean | null;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* `left_click_drag`'s config overrides.
|
|
1810
|
+
*/
|
|
1811
|
+
export interface ComputerLeftClickDragConfig {
|
|
1812
|
+
/**
|
|
1813
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1814
|
+
* member of the toolset.
|
|
1815
|
+
*/
|
|
1816
|
+
defer_loading?: boolean | null;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1820
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1821
|
+
* the served schema.
|
|
1822
|
+
*/
|
|
1823
|
+
enabled?: boolean | null;
|
|
598
1824
|
}
|
|
599
1825
|
|
|
600
|
-
|
|
601
|
-
|
|
1826
|
+
/**
|
|
1827
|
+
* `left_mouse_down`'s config overrides.
|
|
1828
|
+
*/
|
|
1829
|
+
export interface ComputerLeftMouseDownConfig {
|
|
1830
|
+
/**
|
|
1831
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1832
|
+
* member of the toolset.
|
|
1833
|
+
*/
|
|
1834
|
+
defer_loading?: boolean | null;
|
|
602
1835
|
|
|
603
|
-
|
|
1836
|
+
/**
|
|
1837
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1838
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1839
|
+
* the served schema.
|
|
1840
|
+
*/
|
|
1841
|
+
enabled?: boolean | null;
|
|
1842
|
+
}
|
|
604
1843
|
|
|
605
|
-
|
|
1844
|
+
/**
|
|
1845
|
+
* `left_mouse_up`'s config overrides.
|
|
1846
|
+
*/
|
|
1847
|
+
export interface ComputerLeftMouseUpConfig {
|
|
1848
|
+
/**
|
|
1849
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1850
|
+
* member of the toolset.
|
|
1851
|
+
*/
|
|
1852
|
+
defer_loading?: boolean | null;
|
|
606
1853
|
|
|
607
|
-
|
|
1854
|
+
/**
|
|
1855
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1856
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1857
|
+
* the served schema.
|
|
1858
|
+
*/
|
|
1859
|
+
enabled?: boolean | null;
|
|
1860
|
+
}
|
|
608
1861
|
|
|
609
|
-
|
|
1862
|
+
/**
|
|
1863
|
+
* `middle_click`'s config overrides.
|
|
1864
|
+
*/
|
|
1865
|
+
export interface ComputerMiddleClickConfig {
|
|
1866
|
+
/**
|
|
1867
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1868
|
+
* member of the toolset.
|
|
1869
|
+
*/
|
|
1870
|
+
defer_loading?: boolean | null;
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1874
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1875
|
+
* the served schema.
|
|
1876
|
+
*/
|
|
1877
|
+
enabled?: boolean | null;
|
|
610
1878
|
}
|
|
611
1879
|
|
|
612
|
-
|
|
1880
|
+
/**
|
|
1881
|
+
* `mouse_move`'s config overrides.
|
|
1882
|
+
*/
|
|
1883
|
+
export interface ComputerMouseMoveConfig {
|
|
613
1884
|
/**
|
|
614
|
-
*
|
|
615
|
-
*
|
|
616
|
-
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1885
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1886
|
+
* member of the toolset.
|
|
617
1887
|
*/
|
|
618
|
-
|
|
1888
|
+
defer_loading?: boolean | null;
|
|
619
1889
|
|
|
620
|
-
|
|
1890
|
+
/**
|
|
1891
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1892
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1893
|
+
* the served schema.
|
|
1894
|
+
*/
|
|
1895
|
+
enabled?: boolean | null;
|
|
1896
|
+
}
|
|
621
1897
|
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
1898
|
+
/**
|
|
1899
|
+
* `right_click`'s config overrides.
|
|
1900
|
+
*/
|
|
1901
|
+
export interface ComputerRightClickConfig {
|
|
1902
|
+
/**
|
|
1903
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1904
|
+
* member of the toolset.
|
|
1905
|
+
*/
|
|
1906
|
+
defer_loading?: boolean | null;
|
|
625
1907
|
|
|
626
1908
|
/**
|
|
627
|
-
*
|
|
1909
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1910
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1911
|
+
* the served schema.
|
|
628
1912
|
*/
|
|
629
|
-
|
|
1913
|
+
enabled?: boolean | null;
|
|
1914
|
+
}
|
|
630
1915
|
|
|
1916
|
+
/**
|
|
1917
|
+
* `screenshot`'s config overrides.
|
|
1918
|
+
*/
|
|
1919
|
+
export interface ComputerScreenshotConfig {
|
|
631
1920
|
/**
|
|
632
|
-
*
|
|
633
|
-
*
|
|
1921
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1922
|
+
* member of the toolset.
|
|
634
1923
|
*/
|
|
635
|
-
defer_loading?: boolean;
|
|
1924
|
+
defer_loading?: boolean | null;
|
|
636
1925
|
|
|
637
1926
|
/**
|
|
638
|
-
*
|
|
1927
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1928
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1929
|
+
* the served schema.
|
|
639
1930
|
*/
|
|
640
|
-
|
|
1931
|
+
enabled?: boolean | null;
|
|
641
1932
|
}
|
|
642
1933
|
|
|
643
|
-
|
|
1934
|
+
/**
|
|
1935
|
+
* `scroll`'s config overrides.
|
|
1936
|
+
*/
|
|
1937
|
+
export interface ComputerScrollConfig {
|
|
644
1938
|
/**
|
|
645
|
-
*
|
|
646
|
-
*
|
|
647
|
-
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1939
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
1940
|
+
* member of the toolset.
|
|
648
1941
|
*/
|
|
649
|
-
|
|
1942
|
+
defer_loading?: boolean | null;
|
|
650
1943
|
|
|
651
|
-
|
|
1944
|
+
/**
|
|
1945
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
1946
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
1947
|
+
* the served schema.
|
|
1948
|
+
*/
|
|
1949
|
+
enabled?: boolean | null;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* The computer toolset: a single `tools[]` entry (carrying no `name`) that
|
|
1954
|
+
* declares the computer tool family. The model is served the family's tool with
|
|
1955
|
+
* any members disabled via `configs` removed from its schema. Every member is
|
|
1956
|
+
* enabled by default, zoom included. The single-tool options `display_number` and
|
|
1957
|
+
* `enable_zoom` are not fields of a toolset entry — it carries only `type`,
|
|
1958
|
+
* `configs`, and `cache_control`; zoom is controlled via `configs.zoom.enabled`.
|
|
1959
|
+
*/
|
|
1960
|
+
export interface ComputerToolset20260801 {
|
|
1961
|
+
type: 'computer_toolset_20260801';
|
|
652
1962
|
|
|
653
1963
|
allowed_callers?: Array<
|
|
654
1964
|
'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'
|
|
@@ -660,145 +1970,179 @@ export interface CodeExecutionTool20250825 {
|
|
|
660
1970
|
cache_control?: CacheControlEphemeral | null;
|
|
661
1971
|
|
|
662
1972
|
/**
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* When true, guarantees schema validation on tool names and inputs
|
|
1973
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
1974
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1975
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1976
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1977
|
+
* toolset version's complete member set.
|
|
670
1978
|
*/
|
|
671
|
-
|
|
1979
|
+
configs?: ComputerToolsetConfigs | null;
|
|
672
1980
|
}
|
|
673
1981
|
|
|
674
1982
|
/**
|
|
675
|
-
*
|
|
676
|
-
*
|
|
1983
|
+
* Per-member configuration for `computer_toolset_20260801`: one optional field per
|
|
1984
|
+
* member tool, keyed by the member name — the same name the member's `tool_use`
|
|
1985
|
+
* blocks carry. Every member is an accepted key, and a member's defaults apply
|
|
1986
|
+
* wherever its key is absent. Unknown keys are rejected: the field set is this
|
|
1987
|
+
* toolset version's complete member set.
|
|
677
1988
|
*/
|
|
678
|
-
export interface
|
|
1989
|
+
export interface ComputerToolsetConfigs {
|
|
679
1990
|
/**
|
|
680
|
-
*
|
|
681
|
-
*
|
|
682
|
-
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
1991
|
+
* `cursor_position`'s config overrides.
|
|
683
1992
|
*/
|
|
684
|
-
|
|
1993
|
+
cursor_position?: ComputerCursorPositionConfig | null;
|
|
685
1994
|
|
|
686
|
-
|
|
1995
|
+
/**
|
|
1996
|
+
* `double_click`'s config overrides.
|
|
1997
|
+
*/
|
|
1998
|
+
double_click?: ComputerDoubleClickConfig | null;
|
|
687
1999
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
2000
|
+
/**
|
|
2001
|
+
* `hold_key`'s config overrides.
|
|
2002
|
+
*/
|
|
2003
|
+
hold_key?: ComputerHoldKeyConfig | null;
|
|
691
2004
|
|
|
692
2005
|
/**
|
|
693
|
-
*
|
|
2006
|
+
* `key`'s config overrides.
|
|
694
2007
|
*/
|
|
695
|
-
|
|
2008
|
+
key?: ComputerKeyConfig | null;
|
|
696
2009
|
|
|
697
2010
|
/**
|
|
698
|
-
*
|
|
699
|
-
* returned via tool_reference from tool search.
|
|
2011
|
+
* `left_click`'s config overrides.
|
|
700
2012
|
*/
|
|
701
|
-
|
|
2013
|
+
left_click?: ComputerLeftClickConfig | null;
|
|
702
2014
|
|
|
703
2015
|
/**
|
|
704
|
-
*
|
|
2016
|
+
* `left_click_drag`'s config overrides.
|
|
705
2017
|
*/
|
|
706
|
-
|
|
707
|
-
}
|
|
2018
|
+
left_click_drag?: ComputerLeftClickDragConfig | null;
|
|
708
2019
|
|
|
709
|
-
/**
|
|
710
|
-
* Code execution tool with REPL state persistence.
|
|
711
|
-
*/
|
|
712
|
-
export interface CodeExecutionTool20260521 {
|
|
713
2020
|
/**
|
|
714
|
-
*
|
|
715
|
-
*
|
|
716
|
-
* This is how the tool will be called by the model and in `tool_use` blocks.
|
|
2021
|
+
* `left_mouse_down`'s config overrides.
|
|
717
2022
|
*/
|
|
718
|
-
|
|
2023
|
+
left_mouse_down?: ComputerLeftMouseDownConfig | null;
|
|
719
2024
|
|
|
720
|
-
|
|
2025
|
+
/**
|
|
2026
|
+
* `left_mouse_up`'s config overrides.
|
|
2027
|
+
*/
|
|
2028
|
+
left_mouse_up?: ComputerLeftMouseUpConfig | null;
|
|
721
2029
|
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
2030
|
+
/**
|
|
2031
|
+
* `middle_click`'s config overrides.
|
|
2032
|
+
*/
|
|
2033
|
+
middle_click?: ComputerMiddleClickConfig | null;
|
|
725
2034
|
|
|
726
2035
|
/**
|
|
727
|
-
*
|
|
2036
|
+
* `mouse_move`'s config overrides.
|
|
728
2037
|
*/
|
|
729
|
-
|
|
2038
|
+
mouse_move?: ComputerMouseMoveConfig | null;
|
|
730
2039
|
|
|
731
2040
|
/**
|
|
732
|
-
*
|
|
733
|
-
* returned via tool_reference from tool search.
|
|
2041
|
+
* `right_click`'s config overrides.
|
|
734
2042
|
*/
|
|
735
|
-
|
|
2043
|
+
right_click?: ComputerRightClickConfig | null;
|
|
736
2044
|
|
|
737
2045
|
/**
|
|
738
|
-
*
|
|
2046
|
+
* `screenshot`'s config overrides.
|
|
739
2047
|
*/
|
|
740
|
-
|
|
741
|
-
}
|
|
2048
|
+
screenshot?: ComputerScreenshotConfig | null;
|
|
742
2049
|
|
|
743
|
-
export interface CodeExecutionToolResultBlock {
|
|
744
2050
|
/**
|
|
745
|
-
*
|
|
2051
|
+
* `scroll`'s config overrides.
|
|
746
2052
|
*/
|
|
747
|
-
|
|
2053
|
+
scroll?: ComputerScrollConfig | null;
|
|
748
2054
|
|
|
749
|
-
|
|
2055
|
+
/**
|
|
2056
|
+
* `triple_click`'s config overrides.
|
|
2057
|
+
*/
|
|
2058
|
+
triple_click?: ComputerTripleClickConfig | null;
|
|
750
2059
|
|
|
751
|
-
|
|
2060
|
+
/**
|
|
2061
|
+
* `type`'s config overrides.
|
|
2062
|
+
*/
|
|
2063
|
+
type?: ComputerTypeConfig | null;
|
|
2064
|
+
|
|
2065
|
+
/**
|
|
2066
|
+
* `wait`'s config overrides.
|
|
2067
|
+
*/
|
|
2068
|
+
wait?: ComputerWaitConfig | null;
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* `zoom`'s config overrides.
|
|
2072
|
+
*/
|
|
2073
|
+
zoom?: ComputerZoomConfig | null;
|
|
752
2074
|
}
|
|
753
2075
|
|
|
754
2076
|
/**
|
|
755
|
-
*
|
|
2077
|
+
* `triple_click`'s config overrides.
|
|
756
2078
|
*/
|
|
757
|
-
export
|
|
758
|
-
| CodeExecutionToolResultError
|
|
759
|
-
| CodeExecutionResultBlock
|
|
760
|
-
| EncryptedCodeExecutionResultBlock;
|
|
761
|
-
|
|
762
|
-
export interface CodeExecutionToolResultBlockParam {
|
|
2079
|
+
export interface ComputerTripleClickConfig {
|
|
763
2080
|
/**
|
|
764
|
-
*
|
|
2081
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2082
|
+
* member of the toolset.
|
|
765
2083
|
*/
|
|
766
|
-
|
|
2084
|
+
defer_loading?: boolean | null;
|
|
767
2085
|
|
|
768
|
-
|
|
2086
|
+
/**
|
|
2087
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2088
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2089
|
+
* the served schema.
|
|
2090
|
+
*/
|
|
2091
|
+
enabled?: boolean | null;
|
|
2092
|
+
}
|
|
769
2093
|
|
|
770
|
-
|
|
2094
|
+
/**
|
|
2095
|
+
* `type`'s config overrides.
|
|
2096
|
+
*/
|
|
2097
|
+
export interface ComputerTypeConfig {
|
|
2098
|
+
/**
|
|
2099
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2100
|
+
* member of the toolset.
|
|
2101
|
+
*/
|
|
2102
|
+
defer_loading?: boolean | null;
|
|
771
2103
|
|
|
772
2104
|
/**
|
|
773
|
-
*
|
|
2105
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2106
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2107
|
+
* the served schema.
|
|
774
2108
|
*/
|
|
775
|
-
|
|
2109
|
+
enabled?: boolean | null;
|
|
776
2110
|
}
|
|
777
2111
|
|
|
778
2112
|
/**
|
|
779
|
-
*
|
|
2113
|
+
* `wait`'s config overrides.
|
|
780
2114
|
*/
|
|
781
|
-
export
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
error_code: CodeExecutionToolResultErrorCode;
|
|
2115
|
+
export interface ComputerWaitConfig {
|
|
2116
|
+
/**
|
|
2117
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2118
|
+
* member of the toolset.
|
|
2119
|
+
*/
|
|
2120
|
+
defer_loading?: boolean | null;
|
|
788
2121
|
|
|
789
|
-
|
|
2122
|
+
/**
|
|
2123
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2124
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2125
|
+
* the served schema.
|
|
2126
|
+
*/
|
|
2127
|
+
enabled?: boolean | null;
|
|
790
2128
|
}
|
|
791
2129
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
2130
|
+
/**
|
|
2131
|
+
* `zoom`'s config overrides.
|
|
2132
|
+
*/
|
|
2133
|
+
export interface ComputerZoomConfig {
|
|
2134
|
+
/**
|
|
2135
|
+
* Defer loading for this member. Must resolve to the same value on every enabled
|
|
2136
|
+
* member of the toolset.
|
|
2137
|
+
*/
|
|
2138
|
+
defer_loading?: boolean | null;
|
|
800
2139
|
|
|
801
|
-
|
|
2140
|
+
/**
|
|
2141
|
+
* Whether this member is offered to the model. Default is per member, per the
|
|
2142
|
+
* toolset's documentation. A member whose enabled resolves false is withheld from
|
|
2143
|
+
* the served schema.
|
|
2144
|
+
*/
|
|
2145
|
+
enabled?: boolean | null;
|
|
802
2146
|
}
|
|
803
2147
|
|
|
804
2148
|
/**
|
|
@@ -815,6 +2159,46 @@ export interface Container {
|
|
|
815
2159
|
* The time at which the container will expire.
|
|
816
2160
|
*/
|
|
817
2161
|
expires_at: string;
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* Skills loaded in the container
|
|
2165
|
+
*/
|
|
2166
|
+
skills: Array<ContainerSkill> | null;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* Container parameters with skills to be loaded.
|
|
2171
|
+
*/
|
|
2172
|
+
export interface ContainerParams {
|
|
2173
|
+
/**
|
|
2174
|
+
* Container id
|
|
2175
|
+
*/
|
|
2176
|
+
id?: string | null;
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* List of skills to load in the container
|
|
2180
|
+
*/
|
|
2181
|
+
skills?: Array<SkillParams> | null;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* A skill that was loaded in a container (response model).
|
|
2186
|
+
*/
|
|
2187
|
+
export interface ContainerSkill {
|
|
2188
|
+
/**
|
|
2189
|
+
* Skill ID
|
|
2190
|
+
*/
|
|
2191
|
+
skill_id: string;
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
2195
|
+
*/
|
|
2196
|
+
type: 'anthropic' | 'custom';
|
|
2197
|
+
|
|
2198
|
+
/**
|
|
2199
|
+
* The resolved version: a skill version ID for custom skills.
|
|
2200
|
+
*/
|
|
2201
|
+
version: string;
|
|
818
2202
|
}
|
|
819
2203
|
|
|
820
2204
|
/**
|
|
@@ -911,7 +2295,7 @@ export interface DocumentBlock {
|
|
|
911
2295
|
}
|
|
912
2296
|
|
|
913
2297
|
export interface DocumentBlockParam {
|
|
914
|
-
source: Base64PDFSource | PlainTextSource | ContentBlockSource | URLPDFSource;
|
|
2298
|
+
source: Base64PDFSource | PlainTextSource | ContentBlockSource | URLPDFSource | FileDocumentSource;
|
|
915
2299
|
|
|
916
2300
|
type: 'document';
|
|
917
2301
|
|
|
@@ -957,8 +2341,20 @@ export interface EncryptedCodeExecutionResultBlockParam {
|
|
|
957
2341
|
type: 'encrypted_code_execution_result';
|
|
958
2342
|
}
|
|
959
2343
|
|
|
2344
|
+
export interface FileDocumentSource {
|
|
2345
|
+
file_id: string;
|
|
2346
|
+
|
|
2347
|
+
type: 'file';
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
export interface FileImageSource {
|
|
2351
|
+
file_id: string;
|
|
2352
|
+
|
|
2353
|
+
type: 'file';
|
|
2354
|
+
}
|
|
2355
|
+
|
|
960
2356
|
export interface ImageBlockParam {
|
|
961
|
-
source: Base64ImageSource | URLImageSource;
|
|
2357
|
+
source: Base64ImageSource | URLImageSource | FileImageSource;
|
|
962
2358
|
|
|
963
2359
|
type: 'image';
|
|
964
2360
|
|
|
@@ -966,6 +2362,32 @@ export interface ImageBlockParam {
|
|
|
966
2362
|
* Create a cache control breakpoint at this content block.
|
|
967
2363
|
*/
|
|
968
2364
|
cache_control?: CacheControlEphemeral | null;
|
|
2365
|
+
|
|
2366
|
+
/**
|
|
2367
|
+
* Configures the transformations the server applies to this image before the model
|
|
2368
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
2369
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
2370
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
2371
|
+
*/
|
|
2372
|
+
transformations?: ImageTransformationsParam | null;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* Configures the transformations the server applies to this image before the model
|
|
2377
|
+
* observes it. Each key names a condition the server transforms images for; its
|
|
2378
|
+
* value selects the transformation applied. Omitted keys keep their default
|
|
2379
|
+
* behavior, and an empty object is equivalent to omitting the field.
|
|
2380
|
+
*/
|
|
2381
|
+
export interface ImageTransformationsParam {
|
|
2382
|
+
/**
|
|
2383
|
+
* What the server does when this image exceeds the model's maximum image size.
|
|
2384
|
+
* `"downsize"` (the default) scales the image down to fit, which changes the
|
|
2385
|
+
* dimensions the model observes without telling you. `"error"` instead rejects the
|
|
2386
|
+
* request with a 400 error naming the image's dimensions and the largest
|
|
2387
|
+
* dimensions that fit, so you can scale the image deliberately — your image is
|
|
2388
|
+
* never silently scaled down.
|
|
2389
|
+
*/
|
|
2390
|
+
oversized_image?: 'downsize' | 'error';
|
|
969
2391
|
}
|
|
970
2392
|
|
|
971
2393
|
export interface InputJSONDelta {
|
|
@@ -1152,7 +2574,9 @@ export type MessageCountTokensTool =
|
|
|
1152
2574
|
| CodeExecutionTool20250825
|
|
1153
2575
|
| CodeExecutionTool20260120
|
|
1154
2576
|
| CodeExecutionTool20260521
|
|
2577
|
+
| BrowserToolset20260801
|
|
1155
2578
|
| MemoryTool20250818
|
|
2579
|
+
| ComputerToolset20260801
|
|
1156
2580
|
| ToolTextEditor20250124
|
|
1157
2581
|
| ToolTextEditor20250429
|
|
1158
2582
|
| ToolTextEditor20250728
|
|
@@ -1166,6 +2590,11 @@ export type MessageCountTokensTool =
|
|
|
1166
2590
|
| ToolSearchToolBm25_20251119
|
|
1167
2591
|
| ToolSearchToolRegex20251119;
|
|
1168
2592
|
|
|
2593
|
+
/**
|
|
2594
|
+
* Container identifier for reuse across requests.
|
|
2595
|
+
*/
|
|
2596
|
+
export type MessageCreateParamsContainer = ContainerParams | string;
|
|
2597
|
+
|
|
1169
2598
|
export interface MessageDeltaUsage {
|
|
1170
2599
|
/**
|
|
1171
2600
|
* The cumulative number of input tokens used to create the cache entry.
|
|
@@ -1565,6 +2994,26 @@ export interface SignatureDelta {
|
|
|
1565
2994
|
type: 'signature_delta';
|
|
1566
2995
|
}
|
|
1567
2996
|
|
|
2997
|
+
/**
|
|
2998
|
+
* Specification for a skill to be loaded in a container (request model).
|
|
2999
|
+
*/
|
|
3000
|
+
export interface SkillParams {
|
|
3001
|
+
/**
|
|
3002
|
+
* Skill ID
|
|
3003
|
+
*/
|
|
3004
|
+
skill_id: string;
|
|
3005
|
+
|
|
3006
|
+
/**
|
|
3007
|
+
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
3008
|
+
*/
|
|
3009
|
+
type: 'anthropic' | 'custom';
|
|
3010
|
+
|
|
3011
|
+
/**
|
|
3012
|
+
* Skill version or 'latest' for most recent version
|
|
3013
|
+
*/
|
|
3014
|
+
version?: string;
|
|
3015
|
+
}
|
|
3016
|
+
|
|
1568
3017
|
export type StopReason =
|
|
1569
3018
|
| 'end_turn'
|
|
1570
3019
|
| 'max_tokens'
|
|
@@ -2060,9 +3509,15 @@ export interface ToolResultBlockParam {
|
|
|
2060
3509
|
| SearchResultBlockParam
|
|
2061
3510
|
| DocumentBlockParam
|
|
2062
3511
|
| ToolReferenceBlockParam
|
|
3512
|
+
| BrowserStateBlockParam
|
|
2063
3513
|
>;
|
|
2064
3514
|
|
|
2065
3515
|
is_error?: boolean;
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* For a toolset member tool_result, the toolset family of the paired tool_use.
|
|
3519
|
+
*/
|
|
3520
|
+
toolset_name?: string | null;
|
|
2066
3521
|
}
|
|
2067
3522
|
|
|
2068
3523
|
export interface ToolSearchToolBm25_20251119 {
|
|
@@ -2298,7 +3753,9 @@ export type ToolUnion =
|
|
|
2298
3753
|
| CodeExecutionTool20250825
|
|
2299
3754
|
| CodeExecutionTool20260120
|
|
2300
3755
|
| CodeExecutionTool20260521
|
|
3756
|
+
| BrowserToolset20260801
|
|
2301
3757
|
| MemoryTool20250818
|
|
3758
|
+
| ComputerToolset20260801
|
|
2302
3759
|
| ToolTextEditor20250124
|
|
2303
3760
|
| ToolTextEditor20250429
|
|
2304
3761
|
| ToolTextEditor20250728
|
|
@@ -2325,6 +3782,11 @@ export interface ToolUseBlock {
|
|
|
2325
3782
|
name: string;
|
|
2326
3783
|
|
|
2327
3784
|
type: 'tool_use';
|
|
3785
|
+
|
|
3786
|
+
/**
|
|
3787
|
+
* For a toolset member tool_use, the toolset family.
|
|
3788
|
+
*/
|
|
3789
|
+
toolset_name?: string | null;
|
|
2328
3790
|
}
|
|
2329
3791
|
|
|
2330
3792
|
export interface ToolUseBlockParam {
|
|
@@ -2345,6 +3807,11 @@ export interface ToolUseBlockParam {
|
|
|
2345
3807
|
* Tool invocation directly from the model.
|
|
2346
3808
|
*/
|
|
2347
3809
|
caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
3810
|
+
|
|
3811
|
+
/**
|
|
3812
|
+
* For a toolset member tool_use, the toolset family this member belongs to.
|
|
3813
|
+
*/
|
|
3814
|
+
toolset_name?: string | null;
|
|
2348
3815
|
}
|
|
2349
3816
|
|
|
2350
3817
|
export interface URLImageSource {
|
|
@@ -3173,7 +4640,7 @@ export interface MessageCreateParamsBase {
|
|
|
3173
4640
|
/**
|
|
3174
4641
|
* Body param: Container identifier for reuse across requests.
|
|
3175
4642
|
*/
|
|
3176
|
-
container?:
|
|
4643
|
+
container?: MessageCreateParamsContainer | null;
|
|
3177
4644
|
|
|
3178
4645
|
/**
|
|
3179
4646
|
* Body param: Specifies the geographic region for inference processing. If not
|
|
@@ -3613,6 +5080,46 @@ export declare namespace Messages {
|
|
|
3613
5080
|
type BashCodeExecutionToolResultError as BashCodeExecutionToolResultError,
|
|
3614
5081
|
type BashCodeExecutionToolResultErrorCode as BashCodeExecutionToolResultErrorCode,
|
|
3615
5082
|
type BashCodeExecutionToolResultErrorParam as BashCodeExecutionToolResultErrorParam,
|
|
5083
|
+
type BrowserCloseTabConfig as BrowserCloseTabConfig,
|
|
5084
|
+
type BrowserDoubleClickConfig as BrowserDoubleClickConfig,
|
|
5085
|
+
type BrowserFileUploadConfig as BrowserFileUploadConfig,
|
|
5086
|
+
type BrowserFindConfig as BrowserFindConfig,
|
|
5087
|
+
type BrowserFormInputConfig as BrowserFormInputConfig,
|
|
5088
|
+
type BrowserGetPageTextConfig as BrowserGetPageTextConfig,
|
|
5089
|
+
type BrowserHoldKeyConfig as BrowserHoldKeyConfig,
|
|
5090
|
+
type BrowserHoverConfig as BrowserHoverConfig,
|
|
5091
|
+
type BrowserJavascriptExecConfig as BrowserJavascriptExecConfig,
|
|
5092
|
+
type BrowserKeyConfig as BrowserKeyConfig,
|
|
5093
|
+
type BrowserLeftClickConfig as BrowserLeftClickConfig,
|
|
5094
|
+
type BrowserLeftClickDragConfig as BrowserLeftClickDragConfig,
|
|
5095
|
+
type BrowserLeftMouseDownConfig as BrowserLeftMouseDownConfig,
|
|
5096
|
+
type BrowserLeftMouseUpConfig as BrowserLeftMouseUpConfig,
|
|
5097
|
+
type BrowserListTabsConfig as BrowserListTabsConfig,
|
|
5098
|
+
type BrowserMiddleClickConfig as BrowserMiddleClickConfig,
|
|
5099
|
+
type BrowserMouseMoveConfig as BrowserMouseMoveConfig,
|
|
5100
|
+
type BrowserNavigateConfig as BrowserNavigateConfig,
|
|
5101
|
+
type BrowserNewTabConfig as BrowserNewTabConfig,
|
|
5102
|
+
type BrowserReadConsoleConfig as BrowserReadConsoleConfig,
|
|
5103
|
+
type BrowserReadNetworkConfig as BrowserReadNetworkConfig,
|
|
5104
|
+
type BrowserReadPageConfig as BrowserReadPageConfig,
|
|
5105
|
+
type BrowserRightClickConfig as BrowserRightClickConfig,
|
|
5106
|
+
type BrowserScreenshotConfig as BrowserScreenshotConfig,
|
|
5107
|
+
type BrowserScrollConfig as BrowserScrollConfig,
|
|
5108
|
+
type BrowserScrollToConfig as BrowserScrollToConfig,
|
|
5109
|
+
type BrowserStateBlockParam as BrowserStateBlockParam,
|
|
5110
|
+
type BrowserStateChange as BrowserStateChange,
|
|
5111
|
+
type BrowserStateChangeDownloadCompleted as BrowserStateChangeDownloadCompleted,
|
|
5112
|
+
type BrowserStateChangeDownloadFailed as BrowserStateChangeDownloadFailed,
|
|
5113
|
+
type BrowserStateChangeDownloadStarted as BrowserStateChangeDownloadStarted,
|
|
5114
|
+
type BrowserStateChangeTabOpened as BrowserStateChangeTabOpened,
|
|
5115
|
+
type BrowserStateTabEntry as BrowserStateTabEntry,
|
|
5116
|
+
type BrowserSwitchTabConfig as BrowserSwitchTabConfig,
|
|
5117
|
+
type BrowserToolset20260801 as BrowserToolset20260801,
|
|
5118
|
+
type BrowserToolsetConfigs as BrowserToolsetConfigs,
|
|
5119
|
+
type BrowserTripleClickConfig as BrowserTripleClickConfig,
|
|
5120
|
+
type BrowserTypeConfig as BrowserTypeConfig,
|
|
5121
|
+
type BrowserWaitConfig as BrowserWaitConfig,
|
|
5122
|
+
type BrowserZoomConfig as BrowserZoomConfig,
|
|
3616
5123
|
type CacheControlEphemeral as CacheControlEphemeral,
|
|
3617
5124
|
type CacheCreation as CacheCreation,
|
|
3618
5125
|
type CitationCharLocation as CitationCharLocation,
|
|
@@ -3643,7 +5150,28 @@ export declare namespace Messages {
|
|
|
3643
5150
|
type CodeExecutionToolResultError as CodeExecutionToolResultError,
|
|
3644
5151
|
type CodeExecutionToolResultErrorCode as CodeExecutionToolResultErrorCode,
|
|
3645
5152
|
type CodeExecutionToolResultErrorParam as CodeExecutionToolResultErrorParam,
|
|
5153
|
+
type ComputerCursorPositionConfig as ComputerCursorPositionConfig,
|
|
5154
|
+
type ComputerDoubleClickConfig as ComputerDoubleClickConfig,
|
|
5155
|
+
type ComputerHoldKeyConfig as ComputerHoldKeyConfig,
|
|
5156
|
+
type ComputerKeyConfig as ComputerKeyConfig,
|
|
5157
|
+
type ComputerLeftClickConfig as ComputerLeftClickConfig,
|
|
5158
|
+
type ComputerLeftClickDragConfig as ComputerLeftClickDragConfig,
|
|
5159
|
+
type ComputerLeftMouseDownConfig as ComputerLeftMouseDownConfig,
|
|
5160
|
+
type ComputerLeftMouseUpConfig as ComputerLeftMouseUpConfig,
|
|
5161
|
+
type ComputerMiddleClickConfig as ComputerMiddleClickConfig,
|
|
5162
|
+
type ComputerMouseMoveConfig as ComputerMouseMoveConfig,
|
|
5163
|
+
type ComputerRightClickConfig as ComputerRightClickConfig,
|
|
5164
|
+
type ComputerScreenshotConfig as ComputerScreenshotConfig,
|
|
5165
|
+
type ComputerScrollConfig as ComputerScrollConfig,
|
|
5166
|
+
type ComputerToolset20260801 as ComputerToolset20260801,
|
|
5167
|
+
type ComputerToolsetConfigs as ComputerToolsetConfigs,
|
|
5168
|
+
type ComputerTripleClickConfig as ComputerTripleClickConfig,
|
|
5169
|
+
type ComputerTypeConfig as ComputerTypeConfig,
|
|
5170
|
+
type ComputerWaitConfig as ComputerWaitConfig,
|
|
5171
|
+
type ComputerZoomConfig as ComputerZoomConfig,
|
|
3646
5172
|
type Container as Container,
|
|
5173
|
+
type ContainerParams as ContainerParams,
|
|
5174
|
+
type ContainerSkill as ContainerSkill,
|
|
3647
5175
|
type ContainerUploadBlock as ContainerUploadBlock,
|
|
3648
5176
|
type ContainerUploadBlockParam as ContainerUploadBlockParam,
|
|
3649
5177
|
type ContentBlock as ContentBlock,
|
|
@@ -3657,12 +5185,16 @@ export declare namespace Messages {
|
|
|
3657
5185
|
type DocumentBlockParam as DocumentBlockParam,
|
|
3658
5186
|
type EncryptedCodeExecutionResultBlock as EncryptedCodeExecutionResultBlock,
|
|
3659
5187
|
type EncryptedCodeExecutionResultBlockParam as EncryptedCodeExecutionResultBlockParam,
|
|
5188
|
+
type FileDocumentSource as FileDocumentSource,
|
|
5189
|
+
type FileImageSource as FileImageSource,
|
|
3660
5190
|
type ImageBlockParam as ImageBlockParam,
|
|
5191
|
+
type ImageTransformationsParam as ImageTransformationsParam,
|
|
3661
5192
|
type InputJSONDelta as InputJSONDelta,
|
|
3662
5193
|
type JSONOutputFormat as JSONOutputFormat,
|
|
3663
5194
|
type MemoryTool20250818 as MemoryTool20250818,
|
|
3664
5195
|
type Message as Message,
|
|
3665
5196
|
type MessageCountTokensTool as MessageCountTokensTool,
|
|
5197
|
+
type MessageCreateParamsContainer as MessageCreateParamsContainer,
|
|
3666
5198
|
type MessageDeltaEvent as MessageDeltaEvent,
|
|
3667
5199
|
type MessageDeltaUsage as MessageDeltaUsage,
|
|
3668
5200
|
type MessageParam as MessageParam,
|
|
@@ -3690,6 +5222,7 @@ export declare namespace Messages {
|
|
|
3690
5222
|
type ServerToolUseBlock as ServerToolUseBlock,
|
|
3691
5223
|
type ServerToolUseBlockParam as ServerToolUseBlockParam,
|
|
3692
5224
|
type SignatureDelta as SignatureDelta,
|
|
5225
|
+
type SkillParams as SkillParams,
|
|
3693
5226
|
type StopReason as StopReason,
|
|
3694
5227
|
type TextBlock as TextBlock,
|
|
3695
5228
|
type TextBlockParam as TextBlockParam,
|