Skip to main content

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.

ToolWho gets itDoes
ws.tree, ws.read, ws.searchworkspaceAccess read or writeread the node's root
ws.write, ws.edit, ws.deletedeep + workspaceAccess: writewrite files, confined; recorded per ticket
ws.execdeep + execute: trueruns a command in the sandbox
ws.testdeep + execute: true, a project with ciruns ci.test or ci.script in the sandbox
git.log, git.diffany access, a git workspaceread-only history and diff
submitevery harnesssubmits the artifact the agent was asked to write; the engine validates it against the output Schema
write_todosdeepkeeps the agent's todo list
taskdeep with subagentshands 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​