tools: in the agent’s config. Integration tools use names such as int__engineering__post_message and the credentials of that project integration. Built-in tools default to always_allow, but you can change the permission for each one.
This page explains what each tool does and the inputs it accepts. To retrieve the current catalog programmatically, use GET /tool-catalog.
The tools are grouped by what they do:
A red * marks required inputs.
Web
web_search
Searches the public web and returns matching URLs, titles, and snippets.
web_fetch
Fetches a public HTTP or HTTPS URL and returns readable content as Markdown or plain text. It cannot access localhost or private networks by default. To reach a service on an attached machine, use run_command with curl.
Questions
ask_question
Asks a person one or more multiple-choice questions. The agent pauses until the resulting interaction is answered. Omnara automatically adds an Other option for free-text responses.
Scheduling
These tools let an agent schedule messages to itself, for example to check on a deploy in an hour or to post a summary every weekday. They are not included by default; add each one you want undertools:.
A one-time message is a scheduled input attributed to the agent’s own actor, so it counts toward the agent’s limit of 25 scheduled inputs. The agent can only list and delete one-time messages it scheduled itself, not ones scheduled through the API.
A recurring message is a cron schedule that targets the agent, the same kind you create in the dashboard or API. The agent can only list and delete schedules it created itself, not ones created in the dashboard or API. Its messages are attributed to the schedule. An agent can have at most 32 schedules it created.
get_current_time
Returns the current UTC time as current_time (RFC 3339), unix_seconds, and weekday. It takes no inputs.
create_scheduled_message
Schedules a message to the agent itself, once or on a cron schedule. When a message is due, it joins the agent’s queue and starts a new turn once the agent is free. The delivered text starts with a note about the schedule, followed by message. Returns the id with scheduled_for for a one-time message, or with cron, timezone, and next_run_at for a recurring schedule.
Provide exactly one of
timestamp, delay_seconds, or cron.
list_scheduled_messages
Returns scheduled_messages, the agent’s own undelivered one-time messages, soonest first, with each one’s id, scheduled_for, created_at, and message_preview. It also returns schedules, the cron schedules the agent created for itself, with each one’s id, cron, timezone, enabled, next_run_at, and message_preview. message_preview is the first 200 characters of the message. It takes no inputs.
delete_scheduled_message
Deletes one of the agent’s own undelivered one-time messages, or a cron schedule the agent created for itself.
Commands
run_command
Runs a shell command on a machine attached to the agent.
Every command returns a
process_id (prc_…). run_command waits up to wait_ms (5 seconds by default) for the command to exit. If it does, the result includes its exit code and output:
output and the rest from the end in output_tail; omitted_offset_byte and tail_offset_byte mark the bytes left out, which read_process can page through.
If the command is still running when wait_ms passes, the result has "state": "running" and the output so far. The command keeps running; the agent can read its output, send input, or stop it with the process tools below, and receives a message when it ends. Agents are told to set a positive wait_ms only for commands they expect to finish within that time, and to use 0 for long-running commands or ones of unknown duration, then do other work or end their turn. To wait a set time, an agent can run sleep with wait_ms: 0 and let the exit message wake it.
Input
Apipe command gets no input: its stdin is /dev/null, so a program that prompts, such as a package manager asking for confirmation, reads end of input and fails at once instead of waiting until wait_ms passes. To send input with write_process, start the command with io_mode: pty. Daemons older than 0.2.15 keep stdin open for pipe commands.
Background processes
When a command outlives itsrun_command call, Omnara sends the agent a message when it ends, with its exit status, how long it ran, how much output it wrote, and its last lines of output. The agent does not need to poll with read_process; it can do other work or end its turn, and the message wakes it. Like other messages, it waits for any open question or permission request to be answered instead of canceling it.
There is no message when the agent terminated the process with stop_process. After an interrupt the message still comes, since a program can handle the interrupt and keep running.
To hear about specific output while a command runs, such as a development server’s ready line or its errors, use watch_process.
Set run_command to always_ask to require approval before execution. The prompt shows the command, machine, shell, and working directory.
Picking a machine
machine_id chooses which attached machine runs the command:
- With one available machine, omit
machine_id. - With several, pass the public
machine_id(mch_...) returned bylist_machines. - With none, attach a machine in the config or use
create_machine.
Calling tools from commands
When the agent’s config turns on code mode, commands started withrun_command can call the agent’s tools with omnarad call <tool> '<json input>'. The run_command description then tells the model how. For example, to list the paths of Markdown files in a memory store:
null. Pass - as the input to read it from stdin; omit it to send {}. --timeout (default 10m) sets how long to wait for the call to finish, and --output chooses what to print:
The daemon puts
omnarad on the command’s PATH. The examples use POSIX shell syntax; in PowerShell and cmd.exe, pass the input on stdin with - instead of quoting it.
Results go only to the command, never into the model’s context, so an agent can chain calls with pipes, jq, loops, or scripts, or run them in parallel with xargs -P, and print only what it needs. An agent can have up to 128 calls from commands in flight, counted across all of its commands. A call’s input can be up to about 1 MiB. A result is delivered whole whatever its size; if a large result can’t be fetched, the call exits with code 3 and running it again with the same key fetches the saved result without running the tool again.
--idempotency-key <key> names a call. Running it again with the same key, tool and input, from any command of the same agent, even while another run of it is still waiting, returns that call instead of making another: its result if it finished, its approval prompt if it is waiting for one, or the execution still in progress. Every call keeps going after the command that made it stops waiting or exits, whether or not it was named: it runs once approved even with no command waiting for it, so a script that timed out or was restarted can pick up where it left off. For a call made without a key, omnarad call prints the generated key to use when it stops waiting. A call never expires: only its result or archiving the agent ends it. Canceling the agent stops its current turn but leaves calls from commands running, since a call can outlive the command and turn that made it. A key whose call was canceled returns that cancellation, so running the tool again takes a new key. Reusing a key with a different tool or input fails with idempotency_conflict.
A call that fails with error_code: "outcome_unknown" started but never finished, for example because an MCP server’s connection dropped, a gateway returned an error in its place, or the Omnara server running it stopped. It may have taken effect, so it is not run again under its key; the result’s error holds what came back, so the script or the model can decide what to check.
To find tools and their schemas, call tool_search with a case-insensitive regular expression. It returns every matching tool the command can call, unless max_results limits it:
tool_search and calls to that server’s tools are refused with tool_call_not_ready, which omnarad call retries, so their tools are not reported missing. A server that can’t connect, for example because its credentials were revoked, doesn’t block the rest: tool_search returns the tools that are ready and lists the failed server under unavailable_mcp_servers with its error, and calls to its tools report that error. Calls to other servers’ tools are unaffected.
Each tool has an input_schema and an output_schema for the JSON the call prints on success. A built-in’s output schema describes its result exactly. An MCP tool’s is its server’s outputSchema; when the server declares none, it says only that the call prints the tool’s structured result if it returns one, and otherwise its text as a JSON string. The run_command description also shows the model the result types of the storage and web built-ins it can call from commands, as TypeScript types, so it can use them without searching first, and the system prompt adds examples of finding tools, filtering results with jq, chaining and parallel calls, and calling tools from a Python script. Called from a command, web_search returns {"query", "results": [{"url", "title", "snippet", "published"}]} and web_fetch returns the page’s metadata with its extracted text in content, instead of the text the model sees.
Each call from a command is a real tool call. GET /tool-calls lists it with caller: "program" and a parent_tool_call_id naming the run_command call; pass parent_tool_call_id to list only one command’s calls. The agent’s chat shows them under their run_command call. Each call follows the tool’s permission mode. For an always_ask tool, a normal permission interaction opens and the command waits, printing omnarad: waiting for approval of <tool> in Omnara... to stderr, until someone resolves it. Raise --timeout for calls that may wait on a person.
Commands can call MCP tools, custom tools, storage_read, storage_list, storage_search, web_search, web_fetch, and integration read tools such as int__engineering__read, whether or not they are deferred. Other tools can’t be called from commands, including command and process tools, ask_question, subagent and machine tools, skill, and tools that write or upload.
A call to a custom tool waits, printing omnarad: waiting for the result of <tool>... to stderr, until your system submits its result. It stays pending when the command times out, loses its connection to the daemon, or exits, and it never expires: only its result or archiving the agent ends it; canceling the agent leaves it pending. A later command picks it up by running the call again with the same --idempotency-key; for a call made without one, omnarad call prints the key to use when it stops waiting. Pending custom calls count against the agent’s 128 calls in flight.
Processes
Use these tools to follow or control commands that are still running. A process moves fromstarting to running, then ends as exited, failed, or killed.
read_process
Reads process output from a byte offset and can wait for the process to end.
Without
wait_ms, read_process returns the retained output immediately. With it, the read returns when the process ends or wait_ms passes. A pty process also returns after one second with no new output, as an interactive program does at a prompt. A read with offset_byte returns as soon as there is output at that position.
Without offset_byte, a read returns at most 16 KiB of output, keeping the start and end like run_command. With offset_byte, it returns one contiguous page of up to 16 KiB from that position; pass next_offset_byte to continue, or omitted_offset_byte to read output an earlier result left out.
Daemons older than omnarad 0.2.15 return as soon as output arrives and do not keep the end of long output.
run_command and read_process results include offset_byte and next_offset_byte. To continue from a specific point, pass next_offset_byte as offset_byte.
write_process
Sends input to a running process. The process must have been started with io_mode: pty; otherwise the call fails with process_stdin_unavailable.
watch_process
Sends the agent a message with the output lines that match a regular expression, until the watch expires or the process ends.
Matches that arrive together are batched into one message of up to 20 lines, and messages are at least 10 seconds apart. If the agent has not read the watch’s last message yet, for example while it waits for an approval, new matches are merged into that message instead of adding another one. When the process ends, matches still pending are sent before its exit message. A process has one watch at a time: calling
watch_process again replaces the pattern and restarts the timeout, so call it again to keep watching after a watch expires. When a watch expires, the agent gets a message saying so, so it can watch again or move on. Calling watch_process with timeout_seconds: 0 cancels the watch without that message; matches it already found are still sent.
For example, run_command starts a development server, then watch_process with pattern: "listening on|error" tells the agent when it is ready or fails. Watches suit rare lines the agent wants to be told about; it reads the surrounding output with read_process. A pattern that matches frequent lines, such as progress output, sends a message every 10 seconds, so the agent should narrow or cancel a watch that reports too often. watch_process needs omnarad 0.2.15 or later.
stop_process
Interrupts a process gracefully or terminates it. Repeating the call after the process has stopped is safe.
list_processes
No inputs. Returns the agent’s active processes with their state, command label, and working directory.
When machines misbehave
Agents remain observable when machine state changes:- The machine disconnects — the agent can wait for it to reconnect or continue elsewhere. Retained output and process state remain available.
- Output exceeds retention —
read_processreturnstruncated: truewhen older output has been dropped. For large output, write it to a file and read only what you need. - The machine is deleted — its processes end and its binding is released.
Machines
These tools let an agent inspect its BYO and pool-backed machines, and create or delete pool-backed machines. Its config and machine or pool grants determine which machines it can use and how many pool-backed machines it can create.create_machine
Creates a machine from an available pool. Use list_machines to discover pools, then pass the selected machine_pool_id. You can omit the ID when only one pool is available. Pool names are for display; renaming a pool does not change which pool an ID selects. Optional cpu and memory_mb override the defaults where supported, within pool and project limits.
delete_machine
Deletes a pool-backed machine. Requires machine_id.
list_machines / inspect_machine
list_machines lists the agent’s BYO and pool-backed machines, plus pools from its config that have an active project grant. Pools are included even when they have no machines yet. Each pool includes its machine_pool_id, machine_pool_name, and configured description. Pools also expose supported resource overrides, effective defaults, and CPU/memory limits.
inspect_machine shows whether a specific machine is ready to run commands; provide machine_id when the agent has more than one. Machine results include cpu and memory_mb when known, identify source_kind and binding_kind, and include machine_pool_id for pool-backed machines. Only pool bindings can be passed to delete_machine.
list_machines accepts offset (default 0) and limit (1–100, default 50). When the result has has_more: true, pass next_offset as offset in the next call to continue listing. Pools are listed first, followed by machines. If list_machines is disabled, provide the agent with any needed pool IDs, supported resource overrides, and limits in its instructions.
Git
list_github_repositories
Lists the GitHub repositories the agent has access to through its Git credentials. Each repository has an id and a full_name, such as acme/app. can_push is true when the integration has Let agents push code enabled and the credentials aren’t read_only. Omnara adds this tool when a config has git_credentials.
list_github_repositories accepts offset (default 0) and limit (1–100, default 50). When the result has has_more: true, pass next_offset as offset in the next call to continue listing. A page can hold fewer than limit repositories even when more remain.
Files
path addresses files stored in Omnara, not files on an attached machine. /artifacts is the destination for creating an artifact, /artifacts/<artifact_id> identifies an existing artifact, and /memory/<store-name>/<file-path> identifies a file in an attached memory store.
When compiling a config with enabled tools or MCP servers, Omnara adds missing storage_list, storage_read, and storage_search entries to the compiled config, leaving the source unchanged. Attaching a memory store also adds these retrieval tools; a read_write attachment adds storage_write. Explicit tool permissions and enabled: false settings take precedence. These tools do not require an attached machine. Integration-contributed tools are compiled with the config too.
storage_list
Lists matching files and directories without reading their contents.
Use
/artifacts/* for the agent’s artifacts, /memory/* for attached stores and their descriptions, or /memory/** to list paths across attached stores recursively. For example, /memory/engineering/**/*.md finds Markdown files across directories. * matches within a path segment, ** spans directory levels, and ? matches one character.
Artifact patterns such as /artifacts/*.pdf match filenames and return /artifacts/<artifact_id> paths for reading or downloading. An exact /artifacts/<artifact_id> selects one artifact; wildcards match filenames, not IDs, and a filename can match multiple artifacts. Artifacts are ordered newest first and include creation time and content type. Results include hidden entries. While has_more is true, continue with next_offset; narrow the pattern if the listing exceeds its resource limit.
storage_upload
Use storage_upload to copy a file from an attached machine into Omnara. Uploads to /artifacts create artifacts, making files such as generated PDFs, images, or reports available for the user to view or download. Set path to /artifacts or /memory/<store-name>/<file-path> and pass the regular machine file’s relative, absolute, or ~-relative path as source; provide machine_id when the agent has more than one machine.
Files may be up to 10 MiB. Artifacts must be non-empty; memory files may be empty. The upload process has a 30-second execution timeout.
On success, an artifact appears in the conversation and the durable tool result contains its path and a media_ref that clients can use to display or download it. The returned path can be passed directly to storage_download; source and destination refer to paths on the selected machine. The artifact’s contents are not added to later model context unless view is true and the file is a PNG, JPEG, GIF, or WebP image; set view to look at a screenshot or other image in the same call. Other files uploaded with view succeed with a note that they weren’t shown. To deliver artifacts through an integration, use its qualified posting tool, such as int__engineering__post_message, and follow its attachment schema.
A memory upload requires write access and returns its path. Replacing an existing file requires the agent to have read, written, uploaded, or downloaded it since its last change, like storage_write; force: true skips that check. On conflict, read or download the latest file and reapply your changes before retrying. Uploading identical contents always succeeds without changing the file. Artifact uploads do not accept force, and memory uploads do not accept view.
storage_download
Use storage_download to copy a file stored in Omnara to an attached machine. Downloads support /artifacts/<artifact_id> and /memory/<store-name>/<file-path>; provide machine_id when the agent has more than one machine.
Set path to the stored file’s path and destination to the exact machine file path. Relative and ~-relative destinations are supported, the parent directory must already exist, and an existing destination is replaced atomically. A memory download counts as reading the file, so the agent can edit the copy and upload it back.
The download process has a 120-second execution timeout.
storage_read
Reads a text or image file at /artifacts/<artifact_id> or /memory/<store-name>/<file-path>. Text must be UTF-8 without NUL bytes. Artifacts may be up to 48 MiB; memory files may be up to 10 MiB. Readability is determined from the file’s bytes, regardless of its declared content type. PNG, JPEG, GIF, and WebP images are returned for the model to view, with path, content_type, and size_bytes instead of paging fields; paging inputs are still validated but don’t apply to images.
Memory images are preserved as immutable artifacts when read and appear in the agent’s artifact listings.
Reading defaults to line mode. Supplying either character input selects character mode; do not combine line and character inputs. Each text response contains at most 4 KiB of file text, together with
size_bytes, content_type, and has_more.
When has_more is true, continue using the returned next_offset_line or next_offset_char. A line longer than one page returns its first chunk and a character offset; switch to character mode to continue. Reading past the end returns empty content with has_more: false.
If a memory file changed since the agent last read, wrote, uploaded, or downloaded it, the result includes a note with the file’s update time and the time of that read.
storage_write
Creates or edits a memory text file in a writable store attached with read_write access. Returns path.
Supply exactly one of
content or script; append only applies to content. Text must be UTF-8 without NUL bytes, at most 10 MiB. Scripts cannot read other files, write files, or run commands, and run with resource limits. Changing an existing file requires the agent to have read or written it, and fails if the file changed since then; read the file again before retrying. Creating a file needs no prior read.
storage_search
Searches text in one artifact or in memory files matching a path or glob. Binary files may be skipped when searching with a glob.
Supported options are
-e (repeatable patterns), -F (literal), -i (ignore case), -w (whole word), -x (whole line), -v (invert), -U (multiline), -l (matching paths), -c (counts), and -A/-B/-C (0–5 context lines). Patterns total at most 1024 UTF-8 bytes. Other options and file operands are rejected.
Content results are a sequence of match and context records with paths, original line numbers, and bounded snippets. Context does not count toward limit; counts in -c results are not capped by it. Context may be cut off at the response limit. Narrow the query when truncated.
Large tool results
Forweb_fetch, web_search, skill, MCP tools, and custom tools, results containing text or structured data trigger overflow handling when their serialized content exceeds 50 KiB. Omnara saves the oversized content as a text or JSON artifact and returns its path, a preview of up to 8 KiB, size_bytes, content_type, and truncated: true. Saved overflow artifacts are limited to 48 MiB.
The overflow marker’s truncated field describes the shortened inline preview. In web_fetch metadata, truncated reports whether the upstream extractor shortened the fetched content; it can be false even when the overflow marker is true.
For example, a large web_fetch result provides an /artifacts/<artifact_id> path. The agent can search that path for a phrase with storage_search, then read the surrounding lines with storage_read. Visible overflow artifacts also appear as downloadable attachments in the conversation. Hidden results remain hidden.
Explicitly disabling both retrieval tools does not disable overflow handling. The agent still receives the preview and path, but cannot use these tools to retrieve the saved content.
Existing media references remain inline so their attachments remain available to the model and clients. Consequently, 50 KiB is an overflow threshold, not a hard limit on the rewritten result: many retained media references can still exceed it. Media-only results are not offloaded.
Integration tools
Select integration tools by qualified name, such asint__engineering__post_message. An integration owns its credentials and defines its
tools’ argument schemas and conversation requirements. Credential access, live integration
state and ordinary permission govern
execution. Ordinary model output remains in Omnara.
Subscriptions control incoming forwarding independently of enabled tools. Manage
them from the integration’s Conversations list or subscriptions API.
list_interaction_handlers / set_interaction_handler
Select these tools explicitly under tools, or use an integration launcher that supplies
an interaction handler and adds them, preserving explicit tool settings. They
are not global defaults.
list_interaction_handlers accepts offset and limit, returning handler keys,
descriptions, eligible destinations and argument schemas. Its current selection is included
independently of pagination. No eligible handlers means an empty list.
set_interaction_handler takes a handler key and args matching its schema.
An integration may infer the destination from its agent state; in that case its
schema accepts empty arguments. Use {"handler":null,"args":{}} for dashboard only.
Pass auto_select: false to pin the choice, or true to enable automatic selection;
omitting it preserves the current mode. In automatic mode, the last eligible content input
admitted to a turn selects its handler, or clears the choice if none applies. Dashboard
and API messages therefore select dashboard-only delivery. Internal agent reports/messages
and ordinary cron instructions preserve selection. An explicit integration origin takes
precedence over that exception, including a scheduled integration thread’s initial input.
Existing prompts keep their captured destination. Both tools report the current
automatic-selection mode.
Agents and subagents
Subagents are helpers this agent starts for a task. It can check on them, send another instruction, or stop their work. The subagent automatically sends its final answer back to its parent. Agent messaging lets an agent contact an existing agent in the same project. You choose who it can contact. A recipient can reply only if its own settings allow it to message the sender. This is available to agents launched directly in the project. Subagents can use these tools only with their own direct subagents. Selecting a messaging recipient enables listing, timeline reads, and sending messages by default. These tools also work with direct subagents. You can change each action’s permissions under Tools. See how to configure subagents or choose who an agent can message.spawn_agent
Starts a new subagent in the background. Pass the name of a configured subagent in agent and describe the work in task. Include the context it needs because the subagent starts with a fresh conversation. You can also give it a display name.
The call returns the new subagent’s agent_id immediately. Use that ID to check its progress or message it while it works.
read_agent
Reads an agent’s timeline, including messages, tool calls, and results. Pass the agent_id from spawn_agent or list_agents. An agent you have access to can still be read after it’s archived.
Set
limit to change the page size. A page also has a 50 KiB size limit. If a turn summary is too large, it comes back marked truncated. Pass its turn ID to read the events. If a single event is too large, you get its size (size_bytes) and a preview of up to 8 KiB. The preview_type tells you what the preview contains. A null next cursor means you’ve reached the beginning.
A turn summary starts with opening_events. The latest_event and latest_semantic_event fields appear only when they add an event you haven’t already seen in that summary. A checkpoint event includes its summary.
send_agent_message
Sends message to the agent with the given agent_id. An idle recipient resumes. A busy recipient reads the message after its current model call and tool batch finish.
Delivery cancels any open question or permission request on the recipient. An archived agent or one with a full input queue rejects the message. Retrying a completed tool call does not deliver it twice. If a send needs approval, the recipient must still be allowed when the send goes through.
stop_agent
Stops work on a direct subagent. Pass its agent_id. The subagent becomes idle and keeps its conversation, so the parent can send it another task later. Pass archive: true to archive the subagent and its descendants. Archived agents can no longer receive messages.
list_agents
Returns the active agents this agent can see, oldest first. Each entry includes an agent_id, name, state, last activity, and a relation:
subagentmeans this agent spawned it. Itskeyidentifies the subagent entry it was spawned from.peermeans it is a top-level agent this agent can reach through Agent messaging.
relation to list both groups, or pass subagent or peer to see just one. Set limit to 1–100. A page can be shorter if it reaches 50 KiB. To continue, pass next_cursor as cursor and keep the same relation. Only the agent that received the cursor can use it. Entries also include work counts when nonzero.
Here’s how the two kinds appear in a result.
Skills
skill
Loads an attached skill. Requires its skill name. The tool returns the skill’s instructions and, when the agent has machines, installs its supporting files there.
Tool loading
tool_search
Added automatically when any tool is deferred. Searches deferred tools by name, description, and argument names, and loads the matches so the model can call them.
Full inputs and defaults, live from your deployment: Get tool catalog.