Tools and execution
This technical reference was reconciled statically with current implementation on 8 November 2026. Explicit historical examples, screenshots and pinned public links remain historical; they are not evidence of current runtime acceptance. Start with the current operator guide for installation and check your installed build before using newer capabilities.
Tools are structured capabilities supplied to a model request. The model chooses a tool and arguments; the runtime normalizes the call, reviews it, dispatches it, and returns an observed result. A tool's presence does not establish that a particular invocation will succeed.
Native tool families
The effective schema depends on runtime context and enabled integrations. The native catalog includes:
| Family | Examples | Purpose |
|---|---|---|
| Filesystem | files_read, files_list, files_find, files_inspect, files_search | Inspect paths and bounded content |
| File mutation | files_write, files_edit, files_patch | Write complete content, exact replacement, or patch |
| Process and Git | shell_exec, git_status, git_diff | Execute commands or collect repository evidence |
| Conversation and continuity | session_search, session_read_handoff, memory_working_search, memory_rolling_search | Retrieve agent-scoped support evidence |
| Historical run proof | run_evidence_search | Explicit read-only search of the active agent's retained run evidence across sessions; not current verification or authorization |
| Saved memories | brain_search, brain_read, brain_save, brain_update, brain_remove | Explicit agent-owned saved memories |
| Continuity updates | memory_working_write, session_write_handoff | Record explicitly structured operational context |
| Coordination | spawn_subagent, agents_list, agent_send_message | Depth-gated child tasks, native peer discovery and registered-agent messaging |
| Work records | tasks_*, scheduled_jobs_* | Task metadata and scheduled prompts |
| Discovery | list_skills, load_skill, mcp_providers, mcp_capabilities, mcp_call | Load instructions or discover/invoke integrations |
| Attachment inspection | attachment_view | Reopen runtime attachment metadata or a retained same-operator Forge image reference; not an arbitrary path |
| Generation | forge_* | Native creation waits for generation and delivers artifacts; HTTP jobs remain asynchronous |
Schemas, required fields, and feature filters are defined centrally. The supplied schema is authoritative for a particular turn; do not assume every row is available to every agent or minion.
Current development provides agents_list beside native messaging: use it only when peer discovery or disambiguation is needed, not a Backdoor/MCP lookup or health check. A known unique display name or canonical ID can be messaged directly. Minion spawning is omitted at the configured depth ceiling and independently blocked by execution; see depth and directory contracts.
See MCP, Agents and minions, and Workers and tasks for those specific workflows.
Files and working directories
Relative file paths resolve under the current execution root, normally the agent home. A structural filesystem target replaces that root for the turn. An absolute cwd applies to one shell_exec call; it does not persist as a UI/session project selection.
Example native calls:
{
"filePath": "/srv/projects/example/src/parser.mjs",
"offsetBytes": 0,
"maxBytes": 32000
}
{
"command": "npm test",
"cwd": "/srv/projects/example",
"reason": "Run the project's test command after the change"
}
Read evidence and truncation
files_read supports byte ranges and reports total size, returned bytes, offset, truncation, and the next offset. Its harness default is 512,000 bytes. Later receipt/prompt projections can be smaller than the raw read, so distinguish the source range read from the content actually delivered to the model. Continue at the reported next range when necessary; a truncated read is not a full-file inspection.
Listing, finding, and searching are bounded operations:
- Listing defaults to depth 4 and 500 entries
- Find defaults to depth 8 and 500 returned entries
- Search uses literal, case-sensitive text matching; defaults are depth 8 and 200 matches
- Explicit
maxDepth,maxEntriesandmaxMatchescan raise the corresponding budgets; there is no separate hidden small-file or cumulative-byte cutoff. Search streams each file line by line, but retains traversal inventory and the current line, so it is not a constant-memory guarantee. Find uses whole-path Node glob matching. - Directory traversal does not descend symlink directories
Inspect truncated, incomplete, depthTruncated, matchBudgetExhausted and warnings before interpreting an empty or partial result as exhaustive. Search excerpts carry textStartColumn, textEndColumn, lineLength and textTruncated; an excerpt is not the whole line or file.
Mutations
files_write writes complete content and can create parent directories. files_edit requires the exact oldText to occur once. files_patch accepts unified diff or the supported structured patch dialect and records Git evidence around the operation.
A structured patch may change earlier files before a later operation fails. Inspect the actual results and repository diff after a failure; do not assume rollback. Workspace validation is advisory, not a sandbox guarantee.
For another project, prefer explicit absolute paths or a shell command with explicit cwd, as directed by the tool schema. files_patch is not in the remote-native filesystem routing set.
Process execution
The harness supports either a shell command string or an executable plus string argument array. Those forms are mutually exclusive. Native shell_exec exposes the command-string form; built-in Git helpers use argument arrays.
Defaults include a 30-second timeout and bounded stdout/stderr capture. The normal harness environment starts with PATH and HOME, then explicit overrides; it is not a promise to inherit the complete service environment. On Unix, timeout/cancellation terminates the process group and escalates from TERM to KILL.
Remote process/filesystem operations carry provider ID, target ID, parent run ID, tool call ID, and an operation ID. Those fields establish where a result came from; a familiar path alone does not identify the machine.
Review and permissions
Every allowed action is re-reviewed at the concrete executor boundary. A stale or forged earlier “allowed” review cannot bypass current malformed-argument checks or configured hard blocks. Denied or invalid native calls produce failed tool results so the model can correct its arguments while preserving provider call/result pairing.
Agent roots do not provide operating-system isolation. Read Permissions and Trust boundaries for the actual enforcement model and caveats.
Protected values
An integration may return a protected:// reference instead of a sensitive value. A compatible later tool can use that reference through protectedBindings, mapping an environment variable name to the reference. The backend resolves the value and injects it into that process; the model should not reconstruct the value or place it in command text.
{
"command": "example-client status",
"protectedBindings": {
"EXAMPLE_TOKEN": "protected://reference-from-an-earlier-result"
}
}
This is illustrative: the reference must come from a real earlier result and remain valid for that caller and turn. It is not a persistent credential string.
Results, verification, and diagnostics
Raw outputs belong to the producing tool and its trace artifacts. Loop state, persisted entries, and child handoffs retain bounded receipts. Successful execution proves that operation's reported outcome, not that the entire user objective is satisfied.
Normal chat reports completion evidence; legacy mutation workflows apply additional verification gates. A test-looking command name alone is not a universal proof of verification, and mutation recognition differs between current and legacy helpers. See Execution flow and Known limitations.
Treat traces as potentially sensitive. Bounded output and selective redaction are not a guarantee that all artifacts are safe to publish.
Targeted source review
The immutable links below record earlier public evidence. Current contracts were reconciled against the 8 November implementation baseline; static inspection is not a live deployment test.
29 October development delta
Native directory and minion-depth changes were checked statically against Backend 4057b50a5d5a9b14d36bb3b70f35781c4b29a9b9 on 2026-10-29. No application/provider tests or revalidation of unchanged historical sections. See source coverage.
File read and patch safeguards
Checked 7 November 2026: paginated file reads report byte offsets from the original file. UTF-8 pages may extend by up to three bytes to complete a code point; reuse nextOffsetBytes rather than recomputing it from text length. A zero-byte limit on remaining content is rejected.
Structured patch additions use exclusive creation and will not overwrite an existing target. Update hunks require a unique matching context; an optional scope must resolve uniquely, and unsupported or ambiguous scope syntax is rejected rather than guessed. Inspect partial-operation receipts after failure before retrying: these safeguards do not make a multi-file patch an atomic transaction.
Malformed provider tool calls
Current adapters require incoming native-tool arguments to be a JSON object. Missing, null, array, scalar or invalid JSON arguments are marked model_tool_call_arguments_invalid, rather than becoming an empty optional-argument call against the default workspace. The native action converter independently rejects malformed arguments before dispatch. This is argument validation, not broader filesystem isolation.
Patch scopes and verification receipts
Checked 12 November 2026: Structured JavaScript scopes use parsed syntax boundaries in .js, .cjs and .mjs files. Unsupported languages/syntax fail with patch_scope_unsupported; scopes must match uniquely. Unified-diff paths accept spaces and Git-quoted UTF-8 paths, with the same decoded paths used for preflight and receipts.
Verification does not infer a check from words such as test in command text. Only explicitly marked verificationCheck: true shell results with boolean outcomes count as check evidence. verificationExecutionResult reports the whole shell command as not_run, passed or failed, with its exit code and subcommandsAttested: false. A successful compound command does not attest every embedded subcommand.
The scope: shell_command and subcommandsAttested: false qualification survives stored run evidence, child handoffs and repeated compaction; a rendered successful check is still only a whole-command outcome.
Compact child receipts separate source incompleteness from delivery truncation. Inspect source flags, per-field original/delivered/omitted counts, deliveryTruncated, evidenceDelivery and retained trace/artifact locators. A complete delivery of a partial source result is still partial evidence.
Search and scheduling receipts
Checked 14 November 2026: reduced file-search snippets center on the producer’s match offsets rather than rerunning the query against a shortened prefix. Receipts retain source column, matchLength, snippet start/end columns, line length and explicit text omission counts. Columns use one-based UTF-16 code units and the end column is exclusive; read the original file when complete context is needed.
Scheduled-job list/run receipts preserve opaque cursors and complete producer-bounded page identities (up to 100 jobs or 200 runs), not full nested outputs. pageDelivery distinguishes delivered and omitted entries. If a page is omitted or incomplete, repeat that page with the same cursor and scope and a smaller supported limit before advancing; never infer that unseen jobs do not exist. Use scheduled_jobs_read(jobId) for full job details and retained run traces for output where available.
Typed Forge media and explicit resend
Checked 24 November 2026: Catalog-qualified Google and xAI video use separate native contracts. forge_create_job accepts imageOptions for eligible image/GIF jobs; supported xAI video workflows use the installed catalog’s videoOptions. Supported image/video models accept ordered referenceArtifacts: [{jobId, artifactId}] for retained successful operator-owned PNG/JPEG/WebP image artifacts. Native callers can also use referenceAttachmentIds for runtime-owned PNG/JPEG/WebP attachments in their trusted current agent/session; direct HTTP calls lack that trusted chat context. Read the selected model’s reference availability first. Portrait references precede artifact references, then chat images; count combined sources against the selected model and workflow, not a universal six-image limit. Arbitrary paths, bytes, URLs and caller-supplied sourceAttachments remain unsupported. Sources are snapshotted before admission and their identity/order/digests bind idempotency. Native forge_attach_artifact deduplicates same-turn retries, but an explicit later-turn call resends an existing artifact without regeneration. See media API contracts.
When exposed by the runtime, verify_outcome independently compares a frozen intended public release identity with the observed release and tag tree, and optionally its dated GHCR image config ID. Inspect verified, mismatch, or unverified; executing the tool successfully does not establish a verified result. The native check is retained in the current run’s Proof.
Inspect runtime context on demand
runtime_context_inspect accepts section: "environment" or section: "attachments". Environment inspection reports the already-admitted execution host, workspace and configured UI target; it cannot retarget work. Attachment inspection lists up to 24 references from the current logical session, including compacted history but excluding reset history and side questions. It does not return file bytes or redisplay an image. Read the referenced attachment explicitly when its contents are needed. Invalid sections or unavailable attachment scope return explicit failures. This on-demand surface replaces broad always-injected runtime inventories, not current uploaded attachments.
Choose the tool by the evidence you need
Checked 21 November 2026: Core's native tool descriptions now make these distinctions explicit. These are tool-selection hints, not changes to dispatch or permissions.
- Use
brain_searchfor saved facts, preferences or decisions;session_searchfor what was said, exact wording and reset history; andrun_evidence_searchfor what a prior run actually recorded. None verifies current mutable state. - Use working-memory search for temporary blockers or unfinished operations. Session handoffs mark where to resume, not whether the work is still outstanding.
- For Forge,
forge_catalogis a lookup, not generation. After an interrupted wait or uncertain delivery, inspect the existing job withforge_inspect_jobbefore retrying paid generation. Do not reattach an artifact already delivered byforge_create_job.