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.
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 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.
Subagents
These tools are added automatically when the config declaressubagents. Each subagent is an ordinary agent with a parent_agent_id.
spawn_agent
Starts a subagent from a configured subagents key with a clean context. Requires agent (the key) and task; name is an optional display label. Returns immediately with the subagent’s agent_id, which the other subagent tools take. The subagent’s final answer arrives later as a message from it.
read_agent
Reads a subagent’s timeline by agent_id, including its current status, messages, tool calls, results, and checkpoint summaries.
Without turn_id it returns the newest turns first, each with its opening events, latest event, and latest semantic event; before_turn_sequence pages older turns and limit defaults to 10. With turn_id it returns the latest page of that turn’s events, oldest first; before_sequence pages older events and limit defaults to 20. Each result carries next_before_turn_sequence or next_before_sequence for the next page, or null when there are no older results.
Each event’s content appears once in a turn summary. latest_event is omitted when it is already in opening_events; latest_semantic_event is omitted when it is already in either field.
send_agent_message
Delivers message to the subagent identified by agent_id as a steering input. The subagent reads it once its current model call and tool batch finish, so running work is not stopped, but any open question or permission request is canceled. Parents cannot answer a subagent’s questions; those wait for a human. The reply arrives as a message from the subagent.
stop_agent
Cancels the current work of the subagent identified by agent_id and leaves it idle, so send_agent_message can resume it later. With archive: true it also archives the subagent and its descendants, after which it can no longer be messaged.
list_agents
Lists the agent’s subagents with their agent_id, name, key, state, and last activity.
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.