commandagi 0.5.0__tar.gz → 0.6.0__tar.gz

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.
Files changed (71) hide show
  1. {commandagi-0.5.0 → commandagi-0.6.0}/CHANGELOG.md +68 -0
  2. {commandagi-0.5.0 → commandagi-0.6.0}/PKG-INFO +11 -3
  3. {commandagi-0.5.0 → commandagi-0.6.0}/README.md +10 -2
  4. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/__init__.py +1 -1
  5. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/_generated.py +43 -7
  6. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/client.py +31 -17
  7. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/__init__.py +3 -2
  8. commandagi-0.6.0/commandagi/design/circuit_checks.py +92 -0
  9. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/pcb.py +128 -2
  10. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/schematic.py +84 -4
  11. commandagi-0.6.0/commandagi/design/study.py +140 -0
  12. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/tasks.py +1 -1
  13. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/threed.py +13 -3
  14. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/threed_elements.py +33 -0
  15. commandagi-0.6.0/commandagi/design/threed_schema.py +4 -0
  16. commandagi-0.6.0/commandagi/design/tsx.py +128 -0
  17. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/kernel.py +23 -12
  18. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi-sdk.schema.json +171 -9
  19. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_kernel.py +7 -4
  20. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_pcb.py +30 -1
  21. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_schematic.py +54 -1
  22. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_sdk.py +44 -0
  23. commandagi-0.6.0/tests/test_study.py +44 -0
  24. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_tasks.py +2 -2
  25. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_threed.py +18 -0
  26. commandagi-0.6.0/tests/test_tsx.py +58 -0
  27. commandagi-0.5.0/commandagi/design/threed_schema.py +0 -4
  28. {commandagi-0.5.0 → commandagi-0.6.0}/.gitignore +0 -0
  29. {commandagi-0.5.0 → commandagi-0.6.0}/LICENSE +0 -0
  30. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/business.py +0 -0
  31. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/cad.py +0 -0
  32. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/cadquery.py +0 -0
  33. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/documents.py +0 -0
  34. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/eda.py +0 -0
  35. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/element.py +0 -0
  36. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/fab.py +0 -0
  37. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/graph.py +0 -0
  38. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/ir.py +0 -0
  39. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/media.py +0 -0
  40. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/monitors.py +0 -0
  41. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/office.py +0 -0
  42. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/ontology.py +0 -0
  43. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/pdf.py +0 -0
  44. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/postal.py +0 -0
  45. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/records.py +0 -0
  46. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/schema.py +0 -0
  47. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/solids.py +0 -0
  48. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/source.py +0 -0
  49. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/standards.py +0 -0
  50. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/standards_data.py +0 -0
  51. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/twod.py +0 -0
  52. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/twod_schema.py +0 -0
  53. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/design/workbook_schema.py +0 -0
  54. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/gym_env.py +0 -0
  55. {commandagi-0.5.0 → commandagi-0.6.0}/commandagi/lerobot.py +0 -0
  56. {commandagi-0.5.0 → commandagi-0.6.0}/examples/drive_a_sim.py +0 -0
  57. {commandagi-0.5.0 → commandagi-0.6.0}/pyproject.toml +0 -0
  58. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_business.py +0 -0
  59. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_design.py +0 -0
  60. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_fab.py +0 -0
  61. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_media.py +0 -0
  62. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_monitors.py +0 -0
  63. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_office.py +0 -0
  64. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_ontology.py +0 -0
  65. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_pdf.py +0 -0
  66. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_postal.py +0 -0
  67. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_records.py +0 -0
  68. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_source.py +0 -0
  69. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_standards.py +0 -0
  70. {commandagi-0.5.0 → commandagi-0.6.0}/tests/test_twod.py +0 -0
  71. {commandagi-0.5.0 → commandagi-0.6.0}/uv.lock +0 -0
@@ -4,6 +4,74 @@ One entry for each release. A release is the tag `v<version>` in this repository
4
4
  TypeScript and Rust SDKs carry the same version number. A version promises nothing about the next one (README
5
5
  § Versions): read this file before you change the version you pin.
6
6
 
7
+ ## 0.6.0 (2026-10-15)
8
+
9
+ Read **Removed** first: a script that calls `eda.autoroute` stops with `unknown tool` on the platform today, with 0.5.1
10
+ too.
11
+
12
+ Added
13
+
14
+ - A schematic part states its engineering data: `part_number=`, `manufacturer=`, `mpn=`, `rating=` and `attrs={…}` on
15
+ any part but a ground. Each is one KiCad property of the part (`CommandAGI IPN`, `Manufacturer`, `MPN`, `Rating`,
16
+ and each `attrs` entry by its own name), so the BOM, the `.kicad_pcb` and a board edit carry it. `attrs` refuses a
17
+ name that has its own argument and the part's own `Reference`, `Value` and `Footprint`. `part_fields(inputs)` and
18
+ `PART_FIELDS` read them back.
19
+ - Declared checks. A 3D document holds the checks it must pass and what it accepts: `check(id=…, kind=…)`
20
+ (`interference`, `clearance`, `holes`, `fasteners`, `edges`, `symmetry`), `accept(…)` (one finding that is right on
21
+ purpose, with its `reason`) and `permitted(…)` (the findings that a process or a purpose permits, such as the square
22
+ edges of a laser-cut sheet). A circuit (`.sch.py`, `.pcb.py`) holds `check(kind="erc" | "drc")` and `accept(…)`.
23
+ Each is checked against the schema when the document is read.
24
+ - `Kernel.check(doc)`: the checks a 3D document declares, run on one build, with its `accept` and `permitted` entries
25
+ applied. Each finding names its check, rule, severity, body (id, name, part number) and location; a check that
26
+ could not run is `skipped` with its reason, never `passed`. A document that declares no check gets the interference
27
+ check.
28
+ - Fasteners: `fastener(id=…, part="iso-4762-m6", length=…, at=…, clamped=[…], receiver=…, washer=…, nut=…, grip=…,
29
+ fit=…)` places a screw from the fastener library with its washer and nut, and records what it clamps into what. The
30
+ `fasteners` check reads that record: each clamped part's clearance hole for its `fit` (ISO 273), and the thread a
31
+ tapped receiver engages (`min_engagement`).
32
+ - Studies (`commandagi.design.study`): a `<name>.study.py` holds the question of an analysis of a part, never the
33
+ answer: `study(kind="structural", part=…, units="mm-N-MPa-t")` with `material`, `fixture`, `loadCase`, `force`,
34
+ `pressure`, `mesh`, `solver`, `criterion` and `revise`, the same elements as the TypeScript SDK. A solve is a run of
35
+ the `fea` kernel, a new kernel name beside `3d`.
36
+ - A board's layout constraints, each a board fact: `netclass()`, `diffpair()`, `group()`, `keepout()`, `thermal()`,
37
+ `objective()` (`commandagi.design.pcb`; CommandAGI's `docs/eda-layout.md`), as the TypeScript SDK's elements. The
38
+ circuit editor's placer, router, layout score and layout checks read them.
39
+ - The layout tools: `eda.layout` (`pcb_layout`), `eda.layout_score`, `eda.check_layout`, `eda.constrain`,
40
+ `eda.place_group` (`pcb_place_group`), `eda.route_nets` (`pcb_route_nets`) and `eda.rip_up`.
41
+
42
+ Changed
43
+
44
+ - The 3D kernel has a third place, `page`: the workbench page's own kernel. `COMMANDAGI_THREED` accepts `page`, `local`
45
+ and `cloud`. Python has no transport to a page, so it passes `page` over and the default order on this computer stays
46
+ `local`, then `cloud`. The `fea` kernel has no page.
47
+ - An example of a task proposal names a simulated run of the world it asks for (`worlds/shop/runs/…`), not a run of
48
+ a second world.
49
+
50
+ Removed
51
+
52
+ - `eda.autoroute` (`pcb_autoroute`). The board has one router: `eda.route_nets` routes what is open of the nets from
53
+ the copper they have, on the copper layers given (`layers`); `rip_up=True` routes them whole.
54
+ - The platform tools `pcb_optimize_routing` and `pcb_optimize_placement` (no SDK method called them; `call()` with
55
+ their names now gets `unknown tool`). Use `eda.route_nets`, `eda.place_group` and `eda.layout`.
56
+
57
+ ## 0.5.1 (2026-10-15)
58
+
59
+ Fixed
60
+
61
+ - `Kernel`'s message when no place can run it names the right install: `npm install -g @commandagi/host`, then
62
+ `commandagi threed install`. 0.5.0 said `npm install -g commandagi`, a package with no command.
63
+ - `call()` no longer stops every call after a fixed 120 s. `CommandAGI(timeout=…)` sets how long a call waits (None:
64
+ no limit; default 120 s), and `call(tool, args, timeout=…)` sets it for one call. A call with no answer in time
65
+ raises `CommandAGIError` that says so (`pcb_autoroute: no answer within 120 s`); the platform may still finish the
66
+ operation.
67
+
68
+ Added
69
+
70
+ - `commandagi.design.to_tsx(element)`: a Python document's root element as the TypeScript SDK's code file
71
+ (`export default () => (<group …>…</group>);`), for a place that reads only TSX. It declares the same document as
72
+ the Python (checked on the shipped examples: a 3D part, a schematic, a board, a drawing, a letter, a company, a
73
+ project).
74
+
7
75
  ## 0.5.0 (2026-10-14)
8
76
 
9
77
  The first release with the design layer. 0.5.0 was prepared on 2026-10-13 and not published; this entry holds all of it.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: commandagi
3
- Version: 0.5.0
3
+ Version: 0.6.0
4
4
  Summary: The CommandAGI SDK for Python — agent threads, memory and integrations, and live computers, robots and simulated worlds you watch and control.
5
5
  Project-URL: Homepage, https://commandagi.com
6
6
  Project-URL: Documentation, https://github.com/CommandAGI/commandagi-sdk-python/blob/main/README.md
@@ -56,6 +56,13 @@ with cagi.launch("simulation/warehouse") as world:
56
56
  cagi.call("list_snapshots")
57
57
  ```
58
58
 
59
+ A call waits 120 s for its answer. `CommandAGI(timeout=600)` sets it for every call (None: no limit), and
60
+ `cagi.call("pcb_route_nets", {...}, timeout=900)` for one call. A call with no answer in time raises
61
+ `CommandAGIError`; the platform may still finish the operation.
62
+
63
+ A Python document can go where only TSX is read: `commandagi.design.to_tsx(result)` writes its root element as the
64
+ TypeScript SDK's code file, which declares the same document.
65
+
59
66
  ## One surface, generated
60
67
 
61
68
  This SDK, the TypeScript SDK (`npm i commandagi`) and the `commandagi` CLI all come from **one
@@ -114,6 +121,7 @@ vocabulary, one function per tag, named by the tag:
114
121
  | `commandagi.design.pcb` | a board in code (`board`) |
115
122
  | `commandagi.design.threed` | a 3D part or assembly |
116
123
  | `commandagi.design.fab` | a machining setup (`cam`), a slicing setup (`slicing`) |
124
+ | `commandagi.design.study` | a study of a part (`study`: material, fixtures, load cases, mesh, criteria, revise; docs/formats.md § studies) |
117
125
  | `commandagi.design.office` | a workbook, a page, a deck |
118
126
  | `commandagi.design.twod` | a drawing, a painting, a photo, a nest |
119
127
  | `commandagi.design.media` | a video (clips, `composition(src="Intro.vid.py")`: another video drawn live from its own code, `artboard(src="Poster.draw.py")`: a drawing's page drawn live), a song |
@@ -221,7 +229,7 @@ cloud result.
221
229
 
222
230
  | place | the kernel | needs |
223
231
  | --- | --- | --- |
224
- | `local` | this computer, offline, no account. `Kernel` starts it and stops it when Python exits; `COMMANDAGI_THREED_URL` names one that runs already (`commandagi threed serve --port 8091`) | Node 22 and, once: `npm install -g commandagi` then `commandagi threed install` (it downloads OpenCascade as WebAssembly, about 130 MB); for a running one, `COMMANDAGI_THREED_TOKEN`, the bearer you started it with |
232
+ | `local` | this computer, offline, no account. `Kernel` starts it and stops it when Python exits; `COMMANDAGI_THREED_URL` names one that runs already (`commandagi threed serve --port 8091`) | Node 22 and, once: `npm install -g @commandagi/host` then `commandagi threed install` (it downloads OpenCascade as WebAssembly, about 130 MB); for a running one, `COMMANDAGI_THREED_TOKEN`, the bearer you started it with |
225
233
  | `cloud` | the platform's kernel door (`/kernels/3d/v1/<op>`) | the network and `COMMANDAGI_API_KEY` |
226
234
 
227
235
  A URL in `COMMANDAGI_THREED` is that running service only. Both places speak one contract (`POST <kernel>/v1/<op>`,
@@ -262,7 +270,7 @@ graph (`run_module(...)["graph"]`) or the graph's JSON text. An entity is `{"bod
262
270
  ## Versions
263
271
 
264
272
  - A release is the tag `v<version>` in this repository and the same version on PyPI. Pin an exact version:
265
- `commandagi==0.5.0`. A range (`^`, `~=`, `>=`) takes the next release without asking you.
273
+ `commandagi==0.6.0`. A range (`^`, `~=`, `>=`) takes the next release without asking you.
266
274
  - The three SDKs (Python, TypeScript, Rust) carry one version number. A vocabulary at version X in one language is
267
275
  the vocabulary at version X in the others.
268
276
  - A version promises nothing about the next one. CommandAGI keeps no compatibility layers: a release may rename or
@@ -28,6 +28,13 @@ with cagi.launch("simulation/warehouse") as world:
28
28
  cagi.call("list_snapshots")
29
29
  ```
30
30
 
31
+ A call waits 120 s for its answer. `CommandAGI(timeout=600)` sets it for every call (None: no limit), and
32
+ `cagi.call("pcb_route_nets", {...}, timeout=900)` for one call. A call with no answer in time raises
33
+ `CommandAGIError`; the platform may still finish the operation.
34
+
35
+ A Python document can go where only TSX is read: `commandagi.design.to_tsx(result)` writes its root element as the
36
+ TypeScript SDK's code file, which declares the same document.
37
+
31
38
  ## One surface, generated
32
39
 
33
40
  This SDK, the TypeScript SDK (`npm i commandagi`) and the `commandagi` CLI all come from **one
@@ -86,6 +93,7 @@ vocabulary, one function per tag, named by the tag:
86
93
  | `commandagi.design.pcb` | a board in code (`board`) |
87
94
  | `commandagi.design.threed` | a 3D part or assembly |
88
95
  | `commandagi.design.fab` | a machining setup (`cam`), a slicing setup (`slicing`) |
96
+ | `commandagi.design.study` | a study of a part (`study`: material, fixtures, load cases, mesh, criteria, revise; docs/formats.md § studies) |
89
97
  | `commandagi.design.office` | a workbook, a page, a deck |
90
98
  | `commandagi.design.twod` | a drawing, a painting, a photo, a nest |
91
99
  | `commandagi.design.media` | a video (clips, `composition(src="Intro.vid.py")`: another video drawn live from its own code, `artboard(src="Poster.draw.py")`: a drawing's page drawn live), a song |
@@ -193,7 +201,7 @@ cloud result.
193
201
 
194
202
  | place | the kernel | needs |
195
203
  | --- | --- | --- |
196
- | `local` | this computer, offline, no account. `Kernel` starts it and stops it when Python exits; `COMMANDAGI_THREED_URL` names one that runs already (`commandagi threed serve --port 8091`) | Node 22 and, once: `npm install -g commandagi` then `commandagi threed install` (it downloads OpenCascade as WebAssembly, about 130 MB); for a running one, `COMMANDAGI_THREED_TOKEN`, the bearer you started it with |
204
+ | `local` | this computer, offline, no account. `Kernel` starts it and stops it when Python exits; `COMMANDAGI_THREED_URL` names one that runs already (`commandagi threed serve --port 8091`) | Node 22 and, once: `npm install -g @commandagi/host` then `commandagi threed install` (it downloads OpenCascade as WebAssembly, about 130 MB); for a running one, `COMMANDAGI_THREED_TOKEN`, the bearer you started it with |
197
205
  | `cloud` | the platform's kernel door (`/kernels/3d/v1/<op>`) | the network and `COMMANDAGI_API_KEY` |
198
206
 
199
207
  A URL in `COMMANDAGI_THREED` is that running service only. Both places speak one contract (`POST <kernel>/v1/<op>`,
@@ -234,7 +242,7 @@ graph (`run_module(...)["graph"]`) or the graph's JSON text. An entity is `{"bod
234
242
  ## Versions
235
243
 
236
244
  - A release is the tag `v<version>` in this repository and the same version on PyPI. Pin an exact version:
237
- `commandagi==0.5.0`. A range (`^`, `~=`, `>=`) takes the next release without asking you.
245
+ `commandagi==0.6.0`. A range (`^`, `~=`, `>=`) takes the next release without asking you.
238
246
  - The three SDKs (Python, TypeScript, Rust) carry one version number. A vocabulary at version X in one language is
239
247
  the vocabulary at version X in the others.
240
248
  - A version promises nothing about the next one. CommandAGI keeps no compatibility layers: a release may rename or
@@ -60,4 +60,4 @@ __all__ = [
60
60
  "ENV_THREAD_ID",
61
61
  "DEFAULT_BASE_URL",
62
62
  ]
63
- __version__ = "0.5.0"
63
+ __version__ = "0.6.0"
@@ -12,7 +12,7 @@ ENV_THREAD_ID = "COMMANDAGI_THREAD_ID"
12
12
  DEFAULT_BASE_URL = "https://api.commandagi.com"
13
13
 
14
14
  #: The composed, language-neutral schema every SDK is generated from.
15
- SDK_SCHEMA: Dict[str, Any] = json.loads("{\"$comment\":\"GENERATED by scripts/sdk/generate-sdks.mts from the CommandAGI SDK schema — do not edit by hand.\",\"version\":1,\"env\":{\"apiKey\":\"COMMANDAGI_API_KEY\",\"baseUrl\":\"COMMANDAGI_BASE_URL\",\"threadId\":\"COMMANDAGI_THREAD_ID\"},\"defaultBaseUrl\":\"https://api.commandagi.com\",\"tools\":{\"transport\":\"POST {baseUrl}/mcp — JSON-RPC 2.0 `tools/call` {name, arguments}, `authorization: Bearer {apiKey}`; the result's text content is JSON. `call(tool, args)` reaches ANY platform tool by name.\",\"root\":[{\"name\":\"constraints\",\"tool\":\"agent_constraints\",\"doc\":\"Inspect or impose an immutable device-action state machine for this thread's agent.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true},{\"name\":\"whoami\",\"tool\":\"whoami\",\"doc\":\"The account this key belongs to.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"search\",\"tool\":\"search_tools\",\"doc\":\"Search the whole tool catalog by keyword.\",\"params\":[{\"name\":\"query\",\"key\":\"query\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"},{\"name\":\"limit\",\"key\":\"limit\",\"type\":\"integer\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"run\",\"tool\":\"run_code\",\"doc\":\"Run a snippet server-side (JavaScript / TypeScript / Python).\",\"params\":[{\"name\":\"code\",\"key\":\"code\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"file\"},{\"name\":\"language\",\"key\":\"language\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"language\"},{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":true},{\"name\":\"post\",\"tool\":\"post\",\"doc\":\"Publish a file to a connected social account.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false}],\"namespaces\":[{\"name\":\"computer\",\"doc\":\"Computer input with per-action authority and private variable references.\",\"factory\":null,\"methods\":[{\"name\":\"screenshot\",\"tool\":\"computer_screenshot\",\"doc\":\"Observe the computer's current screen.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true},{\"name\":\"act\",\"tool\":\"computer_act\",\"doc\":\"One action/payload or an ordered actions array. Stops on first failure. Type a granted variable with text: '${env:NAME}'.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true}]},{\"name\":\"threads\",\"doc\":\"Agent threads — the unit of work.\",\"factory\":null,\"methods\":[{\"name\":\"list\",\"tool\":\"list_threads\",\"doc\":\"Your threads.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"get\",\"tool\":\"get_thread\",\"doc\":\"One thread's detail.\",\"params\":[{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"create\",\"tool\":\"create_thread\",\"doc\":\"Spawn a thread: {intent, snapshotId?, …}, or {agentless: true, snapshotId} for a world you drive.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"send\",\"tool\":\"send_message\",\"doc\":\"Message a thread.\",\"params\":[{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"text\",\"key\":\"text\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"}],\"bound\":{},\"withThread\":false},{\"name\":\"events\",\"tool\":\"thread_events\",\"doc\":\"A thread's event log.\",\"params\":[{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"kill\",\"tool\":\"kill_process\",\"doc\":\"Stop a thread's run (the thread itself persists).\",\"params\":[{\"name\":\"threadId\",\"key\":\"pid\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":\"thread:\",\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"embodiments\",\"doc\":\"Computers, cameras, robots and sims attached to a thread.\",\"factory\":null,\"methods\":[{\"name\":\"list\",\"tool\":\"list_embodiments\",\"doc\":\"Attached embodiments.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"launch\",\"tool\":\"launch_embodiment\",\"doc\":\"Launch an embodiment into the thread: {kind?, snapshotId?, fromSnapshotId?}.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true},{\"name\":\"observe\",\"tool\":\"observe\",\"doc\":\"The thread's observation plane: stream channels and the latest frame per embodiment.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true},{\"name\":\"controls\",\"tool\":\"list_controls\",\"doc\":\"What an embodiment can be driven with right now: channels, actions, payload schemas.\",\"params\":[{\"name\":\"embodimentId\",\"key\":\"embodimentId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":true},{\"name\":\"act\",\"tool\":\"act\",\"doc\":\"Drive an embodiment with one declared action (see controls).\",\"params\":[{\"name\":\"embodimentId\",\"key\":\"embodimentId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"action\",\"key\":\"action\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"payload\",\"key\":\"payload\",\"type\":\"object\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"json\"},{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":true},{\"name\":\"describe\",\"tool\":\"describe_world\",\"doc\":\"The live sim/robot world: robots, objects and poses the runtime reports.\",\"params\":[{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":true}]},{\"name\":\"billing\",\"doc\":\"Resold third-party services, charged at the provider's price (docs/billing.md).\",\"factory\":null,\"methods\":[{\"name\":\"prices\",\"tool\":\"quote_passthrough\",\"doc\":\"Every pass-through price, with its source and date.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"quote\",\"tool\":\"quote_passthrough\",\"doc\":\"What a service costs before you buy it: {price: \\\"twilio/us-sms\\\", months?, units?, oneTime?}.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"charges\",\"tool\":\"list_passthrough_charges\",\"doc\":\"The account's pass-through line items, monthly items and balance.\",\"params\":[{\"name\":\"limit\",\"key\":\"limit\",\"type\":\"integer\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"memory\",\"doc\":\"The agent's durable memory: markdown files under memories/ in the thread's drive.\",\"factory\":null,\"methods\":[{\"name\":\"search\",\"tool\":\"memory_search\",\"doc\":\"Recall by query (the drive's content index over memories/).\",\"params\":[{\"name\":\"query\",\"key\":\"q\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"}],\"bound\":{},\"withThread\":false},{\"name\":\"remember\",\"tool\":\"memory_remember\",\"doc\":\"Write a memory file.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"forget\",\"tool\":\"memory_forget\",\"doc\":\"Delete a memory file by its path.\",\"params\":[{\"name\":\"path\",\"key\":\"path\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"integrations\",\"doc\":\"Connected third-party accounts.\",\"factory\":null,\"methods\":[{\"name\":\"list\",\"tool\":\"list_integrations\",\"doc\":\"What's connected.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"call\",\"tool\":\"integration_call\",\"doc\":\"Drive a provider's API (method/path/query/body).\",\"params\":[{\"name\":\"integration\",\"key\":\"integration\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"web\",\"doc\":\"Web search through many providers, one shape (docs/search.md): each result names who returned it; each call says what it cost.\",\"factory\":null,\"methods\":[{\"name\":\"search\",\"tool\":\"web_search\",\"doc\":\"Search: kind search | news | academic | code | social | images | video; provider, limit, since, domains … in opts.\",\"params\":[{\"name\":\"query\",\"key\":\"query\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"fetch\",\"tool\":\"web_fetch\",\"doc\":\"One page as clean text.\",\"params\":[{\"name\":\"url\",\"key\":\"url\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"crawl\",\"tool\":\"web_crawl\",\"doc\":\"Many pages of one site (pages in opts).\",\"params\":[{\"name\":\"url\",\"key\":\"url\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"answer\",\"tool\":\"web_answer\",\"doc\":\"An answer with citations; depth research for a long report.\",\"params\":[{\"name\":\"question\",\"key\":\"question\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"providers\",\"tool\":\"web_providers\",\"doc\":\"The providers: what each offers and costs, and whether you can call it.\",\"params\":[],\"bound\":{},\"withThread\":false}]},{\"name\":\"postal\",\"doc\":\"Paper mail (docs/postal.md): letters from a .letter.tsx and postcards from a .postcard.tsx in your files, and mailboxes that receive and scan mail.\",\"factory\":null,\"methods\":[{\"name\":\"quote\",\"tool\":\"postal_quote\",\"doc\":\"What mailing the letter or postcard would cost, and how it would go (its choices: the providers that can mail it). Costs nothing.\",\"params\":[{\"name\":\"source\",\"key\":\"source\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\",\"options\":{\"provider\":{\"type\":\"string\",\"enum\":[\"lob\",\"click2mail\"],\"doc\":\"Who prints and posts it: lob (the default; the US and every other country) or click2mail (US only). Omitted: automatic, the best provider for the destination in the account's postal.providers order, Lob first.\"},\"ownerId\":{\"type\":\"string\",\"enum\":null,\"doc\":\"An organisation's id, to act for it. Omitted: your own account.\"}}}],\"bound\":{},\"withThread\":false},{\"name\":\"send\",\"tool\":\"postal_send\",\"doc\":\"Mail the letter or postcard: charged first, recorded before it is sent, never retried. An agent needs a postal grant.\",\"params\":[{\"name\":\"source\",\"key\":\"source\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\",\"options\":{\"provider\":{\"type\":\"string\",\"enum\":[\"lob\",\"click2mail\"],\"doc\":\"Who prints and posts it: lob (the default; the US and every other country) or click2mail (US only). Omitted: automatic, the best provider for the destination in the account's postal.providers order, Lob first.\"},\"ownerId\":{\"type\":\"string\",\"enum\":null,\"doc\":\"An organisation's id, to act for it. Omitted: your own account.\"}}}],\"bound\":{},\"withThread\":false},{\"name\":\"status\",\"tool\":\"postal_status\",\"doc\":\"A sent piece's state and records; without a piece, the sent pieces.\",\"params\":[{\"name\":\"piece\",\"key\":\"piece\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"cancel\",\"tool\":\"postal_cancel\",\"doc\":\"Cancel a piece before it is printed; the charge comes back.\",\"params\":[{\"name\":\"piece\",\"key\":\"piece\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"inbox\",\"tool\":\"postal_inbox\",\"doc\":\"Your mailboxes, or one mailbox's received pieces with their scans.\",\"params\":[{\"name\":\"mailbox\",\"key\":\"mailbox\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"social\",\"doc\":\"A single connected social account, bound: cagi.social('tiktok', '@brand').post(fileId).\",\"factory\":[{\"name\":\"platform\",\"key\":\"platform\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"account\",\"key\":\"account\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"methods\":[{\"name\":\"post\",\"tool\":\"post\",\"doc\":\"Publish a stored file to this account.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{\"integration\":\"platform\",\"account\":\"account\"},\"withThread\":false},{\"name\":\"call\",\"tool\":\"integration_call\",\"doc\":\"Raw API call as this account.\",\"params\":[{\"name\":\"method\",\"key\":\"method\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"path\",\"key\":\"path\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{\"integration\":\"platform\",\"account\":\"account\"},\"withThread\":false}]},{\"name\":\"phone\",\"doc\":\"The account's phone lines (docs/phone.md). An agent texts and calls only under a phone grant its owner made.\",\"factory\":null,\"methods\":[{\"name\":\"lines\",\"tool\":\"list_phone_lines\",\"doc\":\"The lines you own or may use.\",\"params\":[{\"name\":\"ownerId\",\"key\":\"ownerId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"conversations\",\"tool\":\"list_phone_conversations\",\"doc\":\"A line's conversations, newest first.\",\"params\":[{\"name\":\"lineId\",\"key\":\"lineId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"read\",\"tool\":\"read_phone_conversation\",\"doc\":\"One conversation's records (phone/<line>/<correspondent>.jsonl); `after` is a record id or an ISO time.\",\"params\":[{\"name\":\"lineId\",\"key\":\"lineId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"correspondent\",\"key\":\"correspondent\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"after\",\"key\":\"after\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"quote\",\"tool\":\"quote_phone_number\",\"doc\":\"What buying a number charges now, monthly and per use. Buys nothing.\",\"params\":[{\"name\":\"e164\",\"key\":\"e164\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"country\",\"key\":\"country\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"provider\",\"key\":\"provider\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"text\",\"tool\":\"send_text\",\"doc\":\"Send a text (an MMS with drive-file media). Recorded before it is sent; never retried.\",\"params\":[{\"name\":\"lineId\",\"key\":\"lineId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"to\",\"key\":\"to\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"body\",\"key\":\"body\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"media\",\"key\":\"media\",\"type\":\"array\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"json\"}],\"bound\":{},\"withThread\":false},{\"name\":\"call\",\"tool\":\"place_call\",\"doc\":\"Click-to-call: ring the line's forward-to number (or a number your grant lists), then connect to `to`.\",\"params\":[{\"name\":\"lineId\",\"key\":\"lineId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"to\",\"key\":\"to\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"bridgeTo\",\"key\":\"bridgeTo\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"vpn\",\"doc\":\"The VPN overlay (docs/vpn.md): its nodes and exits, and egress from an exit's address.\",\"factory\":null,\"methods\":[{\"name\":\"status\",\"tool\":\"vpn_status\",\"doc\":\"The account's nodes, the exits it may use, the ACL and the exit grants.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"fetch\",\"tool\":\"vpn_fetch\",\"doc\":\"Fetch a URL from a VPN exit's address (method, headers, body, exit in opts); refused without an exit grant.\",\"params\":[{\"name\":\"url\",\"key\":\"url\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"eda\",\"doc\":\"A circuit in code (docs/eda-authoring.md): check it, route it and make its files with no editor open. fileId is the Drive id of its schematic (.sch.tsx, .sch.py, .sch.rs) or of its board (.pcb.tsx, .pcb.py, .pcb.rs).\",\"factory\":null,\"methods\":[{\"name\":\"erc\",\"tool\":\"sch_erc\",\"doc\":\"Electrical rule check of the schematic: each violation with its rule, severity, pins, and the code elements (file, line) that declare them. CommandAGI's rules over the netlist, not KiCad's ERC. `warnings: false` lists the errors only.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"drc\",\"tool\":\"pcb_drc\",\"doc\":\"Design rule check of the board: each violation with the code elements it is about. A rule given in opts (clearance, trackWidth …) replaces the board's.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"netlist\",\"tool\":\"sch_netlist\",\"doc\":\"The circuit's parts, pins and nets, as the schematic states them.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"autoroute\",\"tool\":\"pcb_autoroute\",\"doc\":\"Route the board's open connections on the copper layers given (default the two outer layers, through vias) and write the traces into its code. The result names each connection left unrouted; `complete` is false while one is.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"fabricate\",\"tool\":\"pcb_fabricate\",\"doc\":\"The manufacturing files of the board (Gerber layers, drill files, bill of materials, pick-and-place); `omitted` names what a file leaves out.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"model3d\",\"tool\":\"pcb_model3d\",\"doc\":\"The board as a 3D model (format: step or obj). The STEP is an assembly: the board with its holes, each part's own model where its footprint names one in the drive, else a bounding body that says so.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false}]}]},\"session\":{\"transport\":\"Frames: WebSocket {baseUrl→ws}/rt/thread/{threadId}?token={apiKey}; server messages `frame` {embodimentId, channelId, url} carry the latest image (a data: URL or an https URL fetched with the same bearer). Control: every vocabulary method is `embodiments.act(embodimentId, action, payload)` — the thread resolves the action against what that embodiment live-declares (embodiments.controls).\",\"vocabularies\":[{\"name\":\"desktop\",\"doc\":\"Computers — pointer, keyboard and waits, in pixels of the latest frame (docs/computer-use.md).\",\"actions\":[{\"name\":\"click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"double_click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"triple_click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"right_click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"middle_click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"move\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"drag\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"toX\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"toY\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\",\"toX\",\"toY\"],\"additionalProperties\":false}},{\"name\":\"scroll\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"dx\":{\"type\":\"integer\",\"minimum\":-50,\"maximum\":50},\"dy\":{\"type\":\"integer\",\"minimum\":-50,\"maximum\":50,\"description\":\"wheel notches; positive scrolls down\"},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[],\"additionalProperties\":false}},{\"name\":\"mouse_down\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"button\":{\"type\":\"string\",\"enum\":[\"left\",\"right\",\"middle\"],\"description\":\"the button (default left); it stays down until mouse_up, and stop releases it\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[],\"additionalProperties\":false}},{\"name\":\"mouse_up\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"button\":{\"type\":\"string\",\"enum\":[\"left\",\"right\",\"middle\"],\"description\":\"the button (default left); it stays down until mouse_up, and stop releases it\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[],\"additionalProperties\":false}},{\"name\":\"key\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":64,\"description\":\"a key or a combo: enter, ctrl+l, ctrl+shift+t\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"key\"],\"additionalProperties\":false}},{\"name\":\"type\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":500},\"textRef\":{\"type\":\"string\",\"pattern\":\"^\\\\$\\\\{env:[A-Za-z_][A-Za-z0-9_]*\\\\}$\",\"description\":\"private input reference; records keep this instead of text\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"text\"],\"additionalProperties\":false}},{\"name\":\"wait\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"ms\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":10000}},\"required\":[],\"additionalProperties\":false}}]},{\"name\":\"robot\",\"doc\":\"Physical robots driven through a robot driver (joints, gripper, drive).\",\"actions\":[{\"name\":\"joint\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":256},\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"required\":[\"name\",\"value\"],\"additionalProperties\":false}},{\"name\":\"pose\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"pose\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"pose\"],\"additionalProperties\":false}},{\"name\":\"gripper\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"required\":[\"value\"],\"additionalProperties\":false}},{\"name\":\"home\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"reset\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"stop\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"move\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"additionalProperties\":false}},{\"name\":\"back\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"additionalProperties\":false}},{\"name\":\"turn\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"additionalProperties\":false}}]},{\"name\":\"sim\",\"doc\":\"Simulated worlds — lifecycle, interaction, and the robots inside them.\",\"actions\":[{\"name\":\"run\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"pause\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"step\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"properties\":{\"n\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":100000}},\"additionalProperties\":false}},{\"name\":\"speed\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"minimum\":0,\"maximum\":64}},\"required\":[\"x\"],\"additionalProperties\":false}},{\"name\":\"reset\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"params\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"properties\":{\"values\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"values\"],\"additionalProperties\":false}},{\"name\":\"load\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"kind\":{\"type\":\"string\",\"enum\":[\"simulation\"]},\"scene\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"name\",\"kind\",\"scene\"],\"additionalProperties\":true}},\"required\":[\"world\"],\"additionalProperties\":false}},{\"name\":\"describe\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"grab\",\"channelId\":\"ctrl\",\"label\":\"Simulation force drag\",\"schema\":{\"type\":\"object\",\"properties\":{\"body\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"local\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"target\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"stiffness\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000000},\"damping\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000000},\"max_force\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000000},\"max_speed\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000}},\"required\":[\"body\",\"local\",\"target\"],\"additionalProperties\":false}},{\"name\":\"drag\",\"channelId\":\"ctrl\",\"label\":\"Simulation force drag\",\"schema\":{\"type\":\"object\",\"properties\":{\"target\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}}},\"required\":[\"target\"],\"additionalProperties\":false}},{\"name\":\"release\",\"channelId\":\"ctrl\",\"label\":\"Simulation force drag\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"ctrl\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"targets\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"targets\"],\"additionalProperties\":false}},{\"name\":\"actuator\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"name\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"value\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"required\":[\"name\",\"value\"],\"additionalProperties\":false}},{\"name\":\"pose\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"joints\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"joints\"],\"additionalProperties\":false}},{\"name\":\"ik\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"target\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"axis\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"along\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"tolerance\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1}},\"required\":[\"target\"],\"additionalProperties\":false}},{\"name\":\"trajectory\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"waypoints\":{\"type\":\"array\",\"minItems\":1,\"maxItems\":10000,\"items\":{\"type\":\"object\",\"properties\":{\"at\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000},\"targets\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"at\",\"targets\"],\"additionalProperties\":false}}},\"required\":[\"waypoints\"],\"additionalProperties\":false}},{\"name\":\"grip\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"close\":{\"type\":\"boolean\"}},\"required\":[\"close\"],\"additionalProperties\":false}},{\"name\":\"stop\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024}},\"additionalProperties\":false}},{\"name\":\"add_robot\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":48},\"device\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"definition\":{\"type\":\"object\",\"additionalProperties\":true},\"at\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"yaw\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000},\"joints\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"id\",\"device\",\"at\"],\"additionalProperties\":false}},{\"name\":\"remove_robot\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024}},\"additionalProperties\":false}}]}]}}")
15
+ SDK_SCHEMA: Dict[str, Any] = json.loads("{\"$comment\":\"GENERATED by scripts/sdk/generate-sdks.mts from the CommandAGI SDK schema — do not edit by hand.\",\"version\":1,\"env\":{\"apiKey\":\"COMMANDAGI_API_KEY\",\"baseUrl\":\"COMMANDAGI_BASE_URL\",\"threadId\":\"COMMANDAGI_THREAD_ID\"},\"defaultBaseUrl\":\"https://api.commandagi.com\",\"tools\":{\"transport\":\"POST {baseUrl}/mcp — JSON-RPC 2.0 `tools/call` {name, arguments}, `authorization: Bearer {apiKey}`; the result's text content is JSON. `call(tool, args)` reaches ANY platform tool by name.\",\"root\":[{\"name\":\"constraints\",\"tool\":\"agent_constraints\",\"doc\":\"Inspect or impose an immutable device-action state machine for this thread's agent.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true},{\"name\":\"whoami\",\"tool\":\"whoami\",\"doc\":\"The account this key belongs to.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"search\",\"tool\":\"search_tools\",\"doc\":\"Search the whole tool catalog by keyword.\",\"params\":[{\"name\":\"query\",\"key\":\"query\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"},{\"name\":\"limit\",\"key\":\"limit\",\"type\":\"integer\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"run\",\"tool\":\"run_code\",\"doc\":\"Run a snippet server-side (JavaScript / TypeScript / Python).\",\"params\":[{\"name\":\"code\",\"key\":\"code\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"file\"},{\"name\":\"language\",\"key\":\"language\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"language\"},{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":true},{\"name\":\"post\",\"tool\":\"post\",\"doc\":\"Publish a file to a connected social account.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false}],\"namespaces\":[{\"name\":\"computer\",\"doc\":\"Computer input with per-action authority and private variable references.\",\"factory\":null,\"methods\":[{\"name\":\"screenshot\",\"tool\":\"computer_screenshot\",\"doc\":\"Observe the computer's current screen.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true},{\"name\":\"act\",\"tool\":\"computer_act\",\"doc\":\"One action/payload or an ordered actions array. Stops on first failure. Type a granted variable with text: '${env:NAME}'.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true}]},{\"name\":\"threads\",\"doc\":\"Agent threads — the unit of work.\",\"factory\":null,\"methods\":[{\"name\":\"list\",\"tool\":\"list_threads\",\"doc\":\"Your threads.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"get\",\"tool\":\"get_thread\",\"doc\":\"One thread's detail.\",\"params\":[{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"create\",\"tool\":\"create_thread\",\"doc\":\"Spawn a thread: {intent, snapshotId?, …}, or {agentless: true, snapshotId} for a world you drive.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"send\",\"tool\":\"send_message\",\"doc\":\"Message a thread.\",\"params\":[{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"text\",\"key\":\"text\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"}],\"bound\":{},\"withThread\":false},{\"name\":\"events\",\"tool\":\"thread_events\",\"doc\":\"A thread's event log.\",\"params\":[{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"kill\",\"tool\":\"kill_process\",\"doc\":\"Stop a thread's run (the thread itself persists).\",\"params\":[{\"name\":\"threadId\",\"key\":\"pid\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":\"thread:\",\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"embodiments\",\"doc\":\"Computers, cameras, robots and sims attached to a thread.\",\"factory\":null,\"methods\":[{\"name\":\"list\",\"tool\":\"list_embodiments\",\"doc\":\"Attached embodiments.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"launch\",\"tool\":\"launch_embodiment\",\"doc\":\"Launch an embodiment into the thread: {kind?, snapshotId?, fromSnapshotId?}.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true},{\"name\":\"observe\",\"tool\":\"observe\",\"doc\":\"The thread's observation plane: stream channels and the latest frame per embodiment.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":true},{\"name\":\"controls\",\"tool\":\"list_controls\",\"doc\":\"What an embodiment can be driven with right now: channels, actions, payload schemas.\",\"params\":[{\"name\":\"embodimentId\",\"key\":\"embodimentId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":true},{\"name\":\"act\",\"tool\":\"act\",\"doc\":\"Drive an embodiment with one declared action (see controls).\",\"params\":[{\"name\":\"embodimentId\",\"key\":\"embodimentId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"action\",\"key\":\"action\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"payload\",\"key\":\"payload\",\"type\":\"object\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"json\"},{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":true},{\"name\":\"describe\",\"tool\":\"describe_world\",\"doc\":\"The live sim/robot world: robots, objects and poses the runtime reports.\",\"params\":[{\"name\":\"threadId\",\"key\":\"threadId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":true}]},{\"name\":\"billing\",\"doc\":\"Resold third-party services, charged at the provider's price (docs/billing.md).\",\"factory\":null,\"methods\":[{\"name\":\"prices\",\"tool\":\"quote_passthrough\",\"doc\":\"Every pass-through price, with its source and date.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"quote\",\"tool\":\"quote_passthrough\",\"doc\":\"What a service costs before you buy it: {price: \\\"twilio/us-sms\\\", months?, units?, oneTime?}.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"charges\",\"tool\":\"list_passthrough_charges\",\"doc\":\"The account's pass-through line items, monthly items and balance.\",\"params\":[{\"name\":\"limit\",\"key\":\"limit\",\"type\":\"integer\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"memory\",\"doc\":\"The agent's durable memory: markdown files under memories/ in the thread's drive.\",\"factory\":null,\"methods\":[{\"name\":\"search\",\"tool\":\"memory_search\",\"doc\":\"Recall by query (the drive's content index over memories/).\",\"params\":[{\"name\":\"query\",\"key\":\"q\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"}],\"bound\":{},\"withThread\":false},{\"name\":\"remember\",\"tool\":\"memory_remember\",\"doc\":\"Write a memory file.\",\"params\":[{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"forget\",\"tool\":\"memory_forget\",\"doc\":\"Delete a memory file by its path.\",\"params\":[{\"name\":\"path\",\"key\":\"path\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"integrations\",\"doc\":\"Connected third-party accounts.\",\"factory\":null,\"methods\":[{\"name\":\"list\",\"tool\":\"list_integrations\",\"doc\":\"What's connected.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"call\",\"tool\":\"integration_call\",\"doc\":\"Drive a provider's API (method/path/query/body).\",\"params\":[{\"name\":\"integration\",\"key\":\"integration\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"web\",\"doc\":\"Web search through many providers, one shape (docs/search.md): each result names who returned it; each call says what it cost.\",\"factory\":null,\"methods\":[{\"name\":\"search\",\"tool\":\"web_search\",\"doc\":\"Search: kind search | news | academic | code | social | images | video; provider, limit, since, domains … in opts.\",\"params\":[{\"name\":\"query\",\"key\":\"query\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"fetch\",\"tool\":\"web_fetch\",\"doc\":\"One page as clean text.\",\"params\":[{\"name\":\"url\",\"key\":\"url\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"crawl\",\"tool\":\"web_crawl\",\"doc\":\"Many pages of one site (pages in opts).\",\"params\":[{\"name\":\"url\",\"key\":\"url\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"answer\",\"tool\":\"web_answer\",\"doc\":\"An answer with citations; depth research for a long report.\",\"params\":[{\"name\":\"question\",\"key\":\"question\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"join\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"providers\",\"tool\":\"web_providers\",\"doc\":\"The providers: what each offers and costs, and whether you can call it.\",\"params\":[],\"bound\":{},\"withThread\":false}]},{\"name\":\"postal\",\"doc\":\"Paper mail (docs/postal.md): letters from a .letter.tsx and postcards from a .postcard.tsx in your files, and mailboxes that receive and scan mail.\",\"factory\":null,\"methods\":[{\"name\":\"quote\",\"tool\":\"postal_quote\",\"doc\":\"What mailing the letter or postcard would cost, and how it would go (its choices: the providers that can mail it). Costs nothing.\",\"params\":[{\"name\":\"source\",\"key\":\"source\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\",\"options\":{\"provider\":{\"type\":\"string\",\"enum\":[\"lob\",\"click2mail\"],\"doc\":\"Who prints and posts it: lob (the default; the US and every other country) or click2mail (US only). Omitted: automatic, the best provider for the destination in the account's postal.providers order, Lob first.\"},\"ownerId\":{\"type\":\"string\",\"enum\":null,\"doc\":\"An organisation's id, to act for it. Omitted: your own account.\"}}}],\"bound\":{},\"withThread\":false},{\"name\":\"send\",\"tool\":\"postal_send\",\"doc\":\"Mail the letter or postcard: charged first, recorded before it is sent, never retried. An agent needs a postal grant.\",\"params\":[{\"name\":\"source\",\"key\":\"source\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\",\"options\":{\"provider\":{\"type\":\"string\",\"enum\":[\"lob\",\"click2mail\"],\"doc\":\"Who prints and posts it: lob (the default; the US and every other country) or click2mail (US only). Omitted: automatic, the best provider for the destination in the account's postal.providers order, Lob first.\"},\"ownerId\":{\"type\":\"string\",\"enum\":null,\"doc\":\"An organisation's id, to act for it. Omitted: your own account.\"}}}],\"bound\":{},\"withThread\":false},{\"name\":\"status\",\"tool\":\"postal_status\",\"doc\":\"A sent piece's state and records; without a piece, the sent pieces.\",\"params\":[{\"name\":\"piece\",\"key\":\"piece\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"cancel\",\"tool\":\"postal_cancel\",\"doc\":\"Cancel a piece before it is printed; the charge comes back.\",\"params\":[{\"name\":\"piece\",\"key\":\"piece\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"inbox\",\"tool\":\"postal_inbox\",\"doc\":\"Your mailboxes, or one mailbox's received pieces with their scans.\",\"params\":[{\"name\":\"mailbox\",\"key\":\"mailbox\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"social\",\"doc\":\"A single connected social account, bound: cagi.social('tiktok', '@brand').post(fileId).\",\"factory\":[{\"name\":\"platform\",\"key\":\"platform\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"account\",\"key\":\"account\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"methods\":[{\"name\":\"post\",\"tool\":\"post\",\"doc\":\"Publish a stored file to this account.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{\"integration\":\"platform\",\"account\":\"account\"},\"withThread\":false},{\"name\":\"call\",\"tool\":\"integration_call\",\"doc\":\"Raw API call as this account.\",\"params\":[{\"name\":\"method\",\"key\":\"method\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"path\",\"key\":\"path\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{\"integration\":\"platform\",\"account\":\"account\"},\"withThread\":false}]},{\"name\":\"phone\",\"doc\":\"The account's phone lines (docs/phone.md). An agent texts and calls only under a phone grant its owner made.\",\"factory\":null,\"methods\":[{\"name\":\"lines\",\"tool\":\"list_phone_lines\",\"doc\":\"The lines you own or may use.\",\"params\":[{\"name\":\"ownerId\",\"key\":\"ownerId\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"conversations\",\"tool\":\"list_phone_conversations\",\"doc\":\"A line's conversations, newest first.\",\"params\":[{\"name\":\"lineId\",\"key\":\"lineId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"read\",\"tool\":\"read_phone_conversation\",\"doc\":\"One conversation's records (phone/<line>/<correspondent>.jsonl); `after` is a record id or an ISO time.\",\"params\":[{\"name\":\"lineId\",\"key\":\"lineId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"correspondent\",\"key\":\"correspondent\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"after\",\"key\":\"after\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"quote\",\"tool\":\"quote_phone_number\",\"doc\":\"What buying a number charges now, monthly and per use. Buys nothing.\",\"params\":[{\"name\":\"e164\",\"key\":\"e164\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"country\",\"key\":\"country\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"provider\",\"key\":\"provider\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false},{\"name\":\"text\",\"tool\":\"send_text\",\"doc\":\"Send a text (an MMS with drive-file media). Recorded before it is sent; never retried.\",\"params\":[{\"name\":\"lineId\",\"key\":\"lineId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"to\",\"key\":\"to\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"body\",\"key\":\"body\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"media\",\"key\":\"media\",\"type\":\"array\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"json\"}],\"bound\":{},\"withThread\":false},{\"name\":\"call\",\"tool\":\"place_call\",\"doc\":\"Click-to-call: ring the line's forward-to number (or a number your grant lists), then connect to `to`.\",\"params\":[{\"name\":\"lineId\",\"key\":\"lineId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"to\",\"key\":\"to\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"bridgeTo\",\"key\":\"bridgeTo\",\"type\":\"string\",\"required\":false,\"spread\":false,\"prefix\":null,\"cli\":\"flag\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"vpn\",\"doc\":\"The VPN overlay (docs/vpn.md): its nodes and exits, and egress from an exit's address.\",\"factory\":null,\"methods\":[{\"name\":\"status\",\"tool\":\"vpn_status\",\"doc\":\"The account's nodes, the exits it may use, the ACL and the exit grants.\",\"params\":[],\"bound\":{},\"withThread\":false},{\"name\":\"fetch\",\"tool\":\"vpn_fetch\",\"doc\":\"Fetch a URL from a VPN exit's address (method, headers, body, exit in opts); refused without an exit grant.\",\"params\":[{\"name\":\"url\",\"key\":\"url\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false}]},{\"name\":\"eda\",\"doc\":\"A circuit in code (docs/eda-authoring.md): check it, route it and make its files with no editor open. fileId is the Drive id of its schematic (.sch.tsx, .sch.py, .sch.rs) or of its board (.pcb.tsx, .pcb.py, .pcb.rs).\",\"factory\":null,\"methods\":[{\"name\":\"erc\",\"tool\":\"sch_erc\",\"doc\":\"Electrical rule check of the schematic: each violation with its rule, severity, pins, and the code elements (file, line) that declare them. CommandAGI's rules over the netlist, not KiCad's ERC. `warnings: false` lists the errors only.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"drc\",\"tool\":\"pcb_drc\",\"doc\":\"Design rule check of the board: each violation with the code elements it is about. A rule given in opts (clearance, trackWidth …) replaces the board's.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"netlist\",\"tool\":\"sch_netlist\",\"doc\":\"The circuit's parts, pins and nets, as the schematic states them.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"}],\"bound\":{},\"withThread\":false},{\"name\":\"fabricate\",\"tool\":\"pcb_fabricate\",\"doc\":\"The manufacturing files of the board (Gerber layers, drill files, bill of materials, pick-and-place); `omitted` names what a file leaves out.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"model3d\",\"tool\":\"pcb_model3d\",\"doc\":\"The board as a 3D model (format: step or obj). The STEP is an assembly: the board with its holes, each part's own model where its footprint names one in the drive, else a bounding body that says so.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"layout\",\"tool\":\"pcb_layout\",\"doc\":\"Lay out the board by its constraints (<netclass>, <group>, <keepout> …): place the parts with no place, route every net with its class's rules, check, repair, score; again until clean or the budget (budgetMinutes) is spent. Writes the placements and copper into the board's code and says each attempt.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"layoutScore\",\"tool\":\"pcb_layout_score\",\"doc\":\"Every term of the board's layout objective (unrouted, DRC errors, overlaps, keep-outs, regions, wire length, vias …) with its weight, the weighted total, and each layout check's verdict.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"checkLayout\",\"tool\":\"pcb_check_layout\",\"doc\":\"The layout checks' findings (placed, routed, DRC with the net classes, courtyards, keep-outs, regions, near, width, length, vias, skew, heat, octolinear, detour, return path): what, where, on which part or net.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"constrain\",\"tool\":\"pcb_constrain\",\"doc\":\"Set or remove one constraint of the board ({ constraint: \\\"netclass\\\", name, attributes: { nets, width, … } }); written into the board's code as its element.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"placeGroup\",\"tool\":\"pcb_place_group\",\"doc\":\"Place the parts of one group ({ group } or { parts }) by the constraint model; the copper of their nets is ripped up, to be routed again.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"routeNets\",\"tool\":\"pcb_route_nets\",\"doc\":\"Route what is open of the nets named ({ nets }; all when none) with their net classes' rules, from the copper they have, on the copper layers given ({ layers }; default the two outer layers, through vias), and write the traces into the board's code. { ripUp: true } removes the nets' copper first. The result names each connection left unrouted; `complete` is false while one is.\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false},{\"name\":\"ripUp\",\"tool\":\"pcb_rip_up\",\"doc\":\"Remove the tracks and vias of the nets named ({ nets }).\",\"params\":[{\"name\":\"fileId\",\"key\":\"fileId\",\"type\":\"string\",\"required\":true,\"spread\":false,\"prefix\":null,\"cli\":\"positional\"},{\"name\":\"opts\",\"key\":null,\"type\":\"object\",\"required\":false,\"spread\":true,\"prefix\":null,\"cli\":\"spread\"}],\"bound\":{},\"withThread\":false}]}]},\"session\":{\"transport\":\"Frames: WebSocket {baseUrl→ws}/rt/thread/{threadId}?token={apiKey}; server messages `frame` {embodimentId, channelId, url} carry the latest image (a data: URL or an https URL fetched with the same bearer). Control: every vocabulary method is `embodiments.act(embodimentId, action, payload)` — the thread resolves the action against what that embodiment live-declares (embodiments.controls).\",\"vocabularies\":[{\"name\":\"desktop\",\"doc\":\"Computers — pointer, keyboard and waits, in pixels of the latest frame (docs/computer-use.md).\",\"actions\":[{\"name\":\"click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"double_click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"triple_click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"right_click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"middle_click\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"move\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\"],\"additionalProperties\":false}},{\"name\":\"drag\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"toX\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"toY\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"x\",\"y\",\"toX\",\"toY\"],\"additionalProperties\":false}},{\"name\":\"scroll\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"dx\":{\"type\":\"integer\",\"minimum\":-50,\"maximum\":50},\"dy\":{\"type\":\"integer\",\"minimum\":-50,\"maximum\":50,\"description\":\"wheel notches; positive scrolls down\"},\"mods\":{\"type\":\"string\",\"maxLength\":40,\"description\":\"modifiers held during the action: shift, ctrl, alt, super, joined by +\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[],\"additionalProperties\":false}},{\"name\":\"mouse_down\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"button\":{\"type\":\"string\",\"enum\":[\"left\",\"right\",\"middle\"],\"description\":\"the button (default left); it stays down until mouse_up, and stop releases it\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[],\"additionalProperties\":false}},{\"name\":\"mouse_up\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"description\":\"pixel column of the latest frame\",\"minimum\":0},\"y\":{\"type\":\"number\",\"description\":\"pixel row of the latest frame\",\"minimum\":0},\"button\":{\"type\":\"string\",\"enum\":[\"left\",\"right\",\"middle\"],\"description\":\"the button (default left); it stays down until mouse_up, and stop releases it\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[],\"additionalProperties\":false}},{\"name\":\"key\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":64,\"description\":\"a key or a combo: enter, ctrl+l, ctrl+shift+t\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"key\"],\"additionalProperties\":false}},{\"name\":\"type\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":500},\"textRef\":{\"type\":\"string\",\"pattern\":\"^\\\\$\\\\{env:[A-Za-z_][A-Za-z0-9_]*\\\\}$\",\"description\":\"private input reference; records keep this instead of text\"},\"basis\":{\"type\":\"string\",\"maxLength\":10,\"description\":\"the id of the frame this action was planned on; refused as stale if the screen changed since\"}},\"required\":[\"text\"],\"additionalProperties\":false}},{\"name\":\"wait\",\"channelId\":\"computer\",\"label\":\"Computer. Coordinates are pixels of the latest frame of this computer (0,0 top left); take a screenshot first.\",\"schema\":{\"type\":\"object\",\"properties\":{\"ms\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":10000}},\"required\":[],\"additionalProperties\":false}}]},{\"name\":\"robot\",\"doc\":\"Physical robots driven through a robot driver (joints, gripper, drive).\",\"actions\":[{\"name\":\"joint\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":256},\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"required\":[\"name\",\"value\"],\"additionalProperties\":false}},{\"name\":\"pose\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"pose\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"pose\"],\"additionalProperties\":false}},{\"name\":\"gripper\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"required\":[\"value\"],\"additionalProperties\":false}},{\"name\":\"home\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"reset\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"stop\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"move\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"additionalProperties\":false}},{\"name\":\"back\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"additionalProperties\":false}},{\"name\":\"turn\",\"channelId\":\"ctrl\",\"label\":\"Robot driver\",\"schema\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"number\",\"minimum\":-1,\"maximum\":1}},\"additionalProperties\":false}}]},{\"name\":\"sim\",\"doc\":\"Simulated worlds — lifecycle, interaction, and the robots inside them.\",\"actions\":[{\"name\":\"run\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"pause\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"step\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"properties\":{\"n\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":100000}},\"additionalProperties\":false}},{\"name\":\"speed\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"number\",\"minimum\":0,\"maximum\":64}},\"required\":[\"x\"],\"additionalProperties\":false}},{\"name\":\"reset\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"params\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"properties\":{\"values\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"values\"],\"additionalProperties\":false}},{\"name\":\"load\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"properties\":{\"world\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"kind\":{\"type\":\"string\",\"enum\":[\"simulation\"]},\"scene\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"name\",\"kind\",\"scene\"],\"additionalProperties\":true}},\"required\":[\"world\"],\"additionalProperties\":false}},{\"name\":\"describe\",\"channelId\":\"ctrl\",\"label\":\"Simulation lifecycle\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"grab\",\"channelId\":\"ctrl\",\"label\":\"Simulation force drag\",\"schema\":{\"type\":\"object\",\"properties\":{\"body\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"local\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"target\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"stiffness\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000000},\"damping\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000000},\"max_force\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000000},\"max_speed\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000}},\"required\":[\"body\",\"local\",\"target\"],\"additionalProperties\":false}},{\"name\":\"drag\",\"channelId\":\"ctrl\",\"label\":\"Simulation force drag\",\"schema\":{\"type\":\"object\",\"properties\":{\"target\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}}},\"required\":[\"target\"],\"additionalProperties\":false}},{\"name\":\"release\",\"channelId\":\"ctrl\",\"label\":\"Simulation force drag\",\"schema\":{\"type\":\"object\",\"additionalProperties\":false}},{\"name\":\"ctrl\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"targets\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"targets\"],\"additionalProperties\":false}},{\"name\":\"actuator\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"name\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"value\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"required\":[\"name\",\"value\"],\"additionalProperties\":false}},{\"name\":\"pose\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"joints\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"joints\"],\"additionalProperties\":false}},{\"name\":\"ik\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"target\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"axis\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"along\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"tolerance\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1}},\"required\":[\"target\"],\"additionalProperties\":false}},{\"name\":\"trajectory\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"waypoints\":{\"type\":\"array\",\"minItems\":1,\"maxItems\":10000,\"items\":{\"type\":\"object\",\"properties\":{\"at\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1000000},\"targets\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"at\",\"targets\"],\"additionalProperties\":false}}},\"required\":[\"waypoints\"],\"additionalProperties\":false}},{\"name\":\"grip\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"close\":{\"type\":\"boolean\"}},\"required\":[\"close\"],\"additionalProperties\":false}},{\"name\":\"stop\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024}},\"additionalProperties\":false}},{\"name\":\"add_robot\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":48},\"device\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024},\"definition\":{\"type\":\"object\",\"additionalProperties\":true},\"at\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\"items\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000}},\"yaw\":{\"type\":\"number\",\"minimum\":-1000000000,\"maximum\":1000000000},\"joints\":{\"type\":\"object\",\"additionalProperties\":true}},\"required\":[\"id\",\"device\",\"at\"],\"additionalProperties\":false}},{\"name\":\"remove_robot\",\"channelId\":\"ctrl\",\"label\":\"Simulation robots\",\"schema\":{\"type\":\"object\",\"properties\":{\"robotId\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":1024}},\"additionalProperties\":false}}]}]}}")
16
16
 
17
17
 
18
18
  def _prune(d: Dict[str, Any]) -> Dict[str, Any]:
@@ -371,12 +371,6 @@ class Eda:
371
371
  a = _prune({"fileId": file_id})
372
372
  return self._t.call("sch_netlist", a)
373
373
 
374
- def autoroute(self, file_id: str, **opts: Any) -> Any:
375
- """Route the board's open connections on the copper layers given (default the two outer layers, through vias) and write the traces into its code. The result names each connection left unrouted; `complete` is false while one is."""
376
- a = _prune({"fileId": file_id})
377
- a.update(_camel_keys(opts))
378
- return self._t.call("pcb_autoroute", a)
379
-
380
374
  def fabricate(self, file_id: str, **opts: Any) -> Any:
381
375
  """The manufacturing files of the board (Gerber layers, drill files, bill of materials, pick-and-place); `omitted` names what a file leaves out."""
382
376
  a = _prune({"fileId": file_id})
@@ -389,6 +383,48 @@ class Eda:
389
383
  a.update(_camel_keys(opts))
390
384
  return self._t.call("pcb_model3d", a)
391
385
 
386
+ def layout(self, file_id: str, **opts: Any) -> Any:
387
+ """Lay out the board by its constraints (<netclass>, <group>, <keepout> …): place the parts with no place, route every net with its class's rules, check, repair, score; again until clean or the budget (budgetMinutes) is spent. Writes the placements and copper into the board's code and says each attempt."""
388
+ a = _prune({"fileId": file_id})
389
+ a.update(_camel_keys(opts))
390
+ return self._t.call("pcb_layout", a)
391
+
392
+ def layout_score(self, file_id: str, **opts: Any) -> Any:
393
+ """Every term of the board's layout objective (unrouted, DRC errors, overlaps, keep-outs, regions, wire length, vias …) with its weight, the weighted total, and each layout check's verdict."""
394
+ a = _prune({"fileId": file_id})
395
+ a.update(_camel_keys(opts))
396
+ return self._t.call("pcb_layout_score", a)
397
+
398
+ def check_layout(self, file_id: str, **opts: Any) -> Any:
399
+ """The layout checks' findings (placed, routed, DRC with the net classes, courtyards, keep-outs, regions, near, width, length, vias, skew, heat, octolinear, detour, return path): what, where, on which part or net."""
400
+ a = _prune({"fileId": file_id})
401
+ a.update(_camel_keys(opts))
402
+ return self._t.call("pcb_check_layout", a)
403
+
404
+ def constrain(self, file_id: str, **opts: Any) -> Any:
405
+ """Set or remove one constraint of the board ({ constraint: "netclass", name, attributes: { nets, width, … } }); written into the board's code as its element."""
406
+ a = _prune({"fileId": file_id})
407
+ a.update(_camel_keys(opts))
408
+ return self._t.call("pcb_constrain", a)
409
+
410
+ def place_group(self, file_id: str, **opts: Any) -> Any:
411
+ """Place the parts of one group ({ group } or { parts }) by the constraint model; the copper of their nets is ripped up, to be routed again."""
412
+ a = _prune({"fileId": file_id})
413
+ a.update(_camel_keys(opts))
414
+ return self._t.call("pcb_place_group", a)
415
+
416
+ def route_nets(self, file_id: str, **opts: Any) -> Any:
417
+ """Route what is open of the nets named ({ nets }; all when none) with their net classes' rules, from the copper they have, on the copper layers given ({ layers }; default the two outer layers, through vias), and write the traces into the board's code. { ripUp: true } removes the nets' copper first. The result names each connection left unrouted; `complete` is false while one is."""
418
+ a = _prune({"fileId": file_id})
419
+ a.update(_camel_keys(opts))
420
+ return self._t.call("pcb_route_nets", a)
421
+
422
+ def rip_up(self, file_id: str, **opts: Any) -> Any:
423
+ """Remove the tracks and vias of the nets named ({ nets })."""
424
+ a = _prune({"fileId": file_id})
425
+ a.update(_camel_keys(opts))
426
+ return self._t.call("pcb_rip_up", a)
427
+
392
428
 
393
429
  class GeneratedClient:
394
430
  """Everything above the transport: the hand-written client implements `call` and `_with_thread`."""