Built-in tools
Use this page to check which tools an agent can call and which access each tool requires.
The built-in tools
The engine offers the built-in tools an agent declares in tools/extraTools, according to its
access; basic stays read-only. Workspaces and sandbox covers the
paths, the worktrees and the Docker sandbox.
| Tool | Who gets it | Does |
|---|---|---|
ws.tree, ws.read, ws.search | workspaceAccess read or write | read the node's root |
ws.write, ws.edit, ws.delete | deep + workspaceAccess: write | write files, confined; recorded per ticket |
ws.exec | deep + execute: true | runs a command in the sandbox |
ws.test | deep + execute: true, a project with ci | runs ci.test or ci.script in the sandbox |
git.log, git.diff | any access, a git workspace | read-only history and diff |
submit | every harness | submits the artifact the agent was asked to write; the engine validates it against the output Schema |
write_todos | deep | keeps the agent's todo list |
task | deep with subagents | hands one piece of work to a subagent |
Read a file by range
ws.read takes path and two optional numbers: offset, the first line to read counting from 0, and
limit, how many lines. It returns 400 lines by default.
The last line of the answer closes the read and says where it stopped:
[lines 401–800 of 10910; next offset 800]
Pass next offset as the next offset to keep reading. The last line has no next offset once the
read reaches the end of the file. A read past the end answers [no lines at offset N of TOTAL].
A large file or very long lines can fill the answer before limit lines. The read then stops at a
complete line, and the last line says so. The same rules hold inside a sandbox, so the answer is never
only the tail of the file.
See also
- Agent manifests for tool and access fields.
- Workspaces and sandbox for path and isolation rules.