Get an API key
api.agents

Options · bridges

files · shell · terminals · customTools

Four objects that give the engine what it does not have: a workspace that is not a disk, a shell elsewhere, long-lived terminals, and tools of your own.

plain objectsvalidated at creationthey shape the tool list
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

filesobject

{ list, read, write, mkdir, move, remove } — all six required.

shellobject

{ run(command, { timeoutMs, signal }) } returning { stdout, stderr, exitCode }.

terminalsobject

{ list, get, create, remove }, each terminal with run, output, kill.

customToolsobject

{ name: { description, parameters, category, run } }.

When files is required

machinefiles
A computeroptional — the machine's own workspace is used
A phonerequired
A cloud workspacerequired

A bridge missing an operation is refused at creation with files_required, naming what is absent — half a file system fails at the moment a tool needs the missing piece, which is the worst time to find out.

The tool list follows them

  • No shell on a phone or a cloud workspace → no bash.
  • A phone → no terminal, ever.
  • A cloud workspace → terminal only with terminals.
  • Supplied terminals override the machine's own, wherever you are.
A tool that cannot run is not declared

Rather than offering bash and failing, the engine leaves it out, and the system prompt loses its instructions with it.

Custom tools are permissioned like the rest

They take one of four categories — read, write, storage, exec — and write by default. The three always-asked categories are not available to them, so anything that sends, publishes or spends belongs in your own code.

They cost tokens too

Each custom tool is a declaration on every turn. Declare what this run may actually call, not everything your application can do.