OpenProgram Docs

Built-in tools

Each needs nothing unless its row says so. Approval and live changes: tool permissions.

Files and code

ToolWhat it does
readRead file contents
writeCreate a file or overwrite one wholesale
editString replacement inside a file
apply_patchStructured multi-file patches in Codex or OpenClaw format
listList directory contents
globFind files by name pattern
grepContent search: ripgrep when present (faster), else Python re
semble_search, semble_find_relatedSemantic and lexical code search returning ranked blocks. In every supported release; source developers install the search extra through the locked environment.
lsp_diagnostics, lsp_references, lsp_definitionType-checker errors, real call sites, true definitions: language server tools. Needs pyright (Python) or typescript-language-server (TypeScript); the tools name the install command when missing.

Files, previews and versions

FormatIn the file window
Supported UTF-8 textPreview, then Edit. Autosaves; Ctrl/Cmd+S flushes. Switching keeps undo history.
PDFPages, zoom, text search over the first 500 pages (longer documents state the limit). Read-only.
PSDSaved composite and layer names, 8-bit RGB. Read-only.
TIFFFirst page. Read-only.
Common imagesPreview by default.
PNG, JPEG, WebP (static)Edit: crop, rotate, draw, shapes, text. Autosaves; Convert to PNG makes a separate file and rejects an existing destination.
Animated PNG/WebP, 16-bit PNGRead-only
Audio, videoBrowser controls; codecs depend on the browser
DOCX, PPTX, XLSX, ODT, ODP, ODSONLYOFFICE application, ready to edit, no Preview switch
DOC, PPT, XLSConvert to a new DOCX, PPTX or XLSX path; original kept, existing destination rejected

Damaged or unsupported files keep an original-file download. Chat attachments and history previews are read-only.

Publish a generated document from the model
  • write(file_path="/absolute/final.docx", source_path="/absolute/staged.docx") publishes a separate temporary result, for Word, PowerPoint, PDF, images and other binaries. source_path and content are mutually exclusive; the source is a regular local file of at most 64 MiB. Existing targets must be read first; binary reads return metadata and set the same freshness check.
  • Records complete before/after bytes in the turn's file history, surviving reopen and restart. Undo and reapply refuse to overwrite conflicting later changes. New files can be undone. No Git repository needed. Local generators use this same interface.
  • A failed later history commit keeps the previously published version. An interrupted write is reported as unconfirmed and blocks exact recovery. Corrupt history blocks further recorded writes rather than being replaced. After a failed first attempt, reread before retrying. Versions follow the turn's retention.
  • Binary versions keep formatting and media; Review does not compare layout or show Word tracked changes. Shell commands overwriting the final file are not recorded, and unrecorded versions cannot be rebuilt from a card or output: write a separate result and publish it.
Manual edits and history
  • Project-file edits keep before/after bytes independently of conversations. Each successful write publishes at once. Changes from one editor group for at most five minutes; closing the group or an intervening outside change starts another version.
  • History lists retained versions and restores a selected one, creating a new entry after checking the current revision.
  • A failed save or an outside change keeps the draft for retry, export or explicit discard. Closing a file with unsaved changes asks first: Save, Don't Save or Cancel. Saving never holds the close: the tab goes at once, and a save that fails shows a notice and keeps the changes as a draft.
  • History combines manual edits and confirmed model changes for the project-relative file. Model entries read retained bytes from the original session checkpoint, without a second archive. Restoring changes only this file.
  • Archived sessions keep their file history; permanent deletion makes their model versions unavailable; manual history is independent.
  • Older history indexes in bounded batches: Continue loading history. Incomplete or unverifiable history is labeled. Legacy paths appear only when project ownership can be established.
  • History follows the project when it moves and stays readable while its disk is disconnected; writing and restoring need an available location.
  • The document API accepts bounded binary content up to 64 MiB, which does not itself provide an editor for every format.
  • PDF, PSD and TIFF decoders accept at most 64 MiB, bound the rendered size, are local and load only when that format opens. Previewing a history version uses its retained bytes.
Office editing (ONLYOFFICE)
  • Built-in application office_editor, an optional local install shared by all Office formats; not in the default App or runtime. Disabled on Applications: the file offers only its download and nothing installs.
  • Without the component, Install or Cancel; nothing downloads until you choose. About 699 MiB, with resources, fonts, licenses and source materials, downloaded from your version's GitHub release. Files process locally.
  • Releases before 1.3.0 do not carry it: such a version says so and asks you to update OpenProgram first, instead of offering a retry.
  • The pinned archive and all resources are verified before a complete version is selected. Failures can retry and existing installs remain. On success the document opens without restarting. Cancel leaves the download, and Installation options lets you choose again.
  • Unavailable through remote application access. PDF viewing does not need it.
  • A centered status shows preparation and opening. Closing during startup cancels; a failure offers Retry.
  • Editing starts once the native editor is writable; autosaves. Tabs, split layouts and History keep the editor and its undo history. Closing waits for pending input; a failed write keeps the document for retry.
  • History previews are read-only and restoring creates a new version. No semantic Office redlines. The download stays when the editor cannot load.
Image editing limits

At most 64 MiB, 16 million pixels and 16,384 pixels per side. Changes save through the document history controller; Preview, History, tabs and routes keep undo and redo. Failed publication keeps the draft; closing waits for export. Exports rendered pixels, so embedded metadata may not survive.

Execution

ToolWhat it does
bashRun a shell command; returns output and exit code. Still running after its wait: keeps running as a session.
write_stdinWait for more output from that session, interrupt it, or type into it
execute_codePython snippet in a fresh isolated subprocess. Returns stdout, stderr, exit code. Success needs exit 0; nonzero or timeout is an error with partial output kept.

Commands that keep running

bash waits up to yield_time_ms (250 minimum, 30000 default and maximum), then returns either Process exited with code N or Process running with session ID <id> with the output so far. No separate start step.

write_stdin charsEffectyield_time_ms
emptyReturns new output, or the exit code once ended5000–300000, default 5000
"\u0003"Interrupts, like Ctrl-CDefault 250
anything elseTyped as is; end a line with "\n"250–30000, default 250
Limits, notices and approval
  • Typing needs bash(..., tty=true) (pseudo-terminal, local backend on macOS or Linux). Without it stdin is closed, so a command waiting for input ends, and only the interrupt is accepted.
  • A call keeps up to 1 MiB of output: first and last halves when longer.
  • A background command ending unseen sends the conversation a notice turn with command, exit code and last output, after any running turn. While a Goal runs, the notice goes into the Goal's next turn instead, since its turns follow each other with no gap. A command you stop sends none.
  • Listed as Background terminal under Terminal in Resources, where you can watch and stop them, and in Activity. Record and output are deleted a day after it ends or its status became unknown.
  • At most 64 per conversation. Another stops the least recently used, never one of the eight most recent, and the result names it. Cancelling a turn stops a command in its first wait; background ones keep running.
  • Polling and interrupting are never asked about. Typing follows the permission mode, like bash.

workdir

Each bash call is a new shell: bash(command="npm test", workdir="apps/web"). A cd or export does not carry over. It does not change the worktree binding or the file tools' base, and it is not the Desktop terminal (that is terminal_use).

Path rules
  • Relative paths resolve from the bound worktree, or the host process directory when none. Absolute paths work. Literal: no ~, variables or expressions. Omit it for the existing default.
  • Missing, non-directory or denied directories fail without running; none is created and nothing falls back.
  • Selecting a directory grants nothing. Under a local sandbox policy it must satisfy the workspace's policy, including symlinks and extra authorized roots, and execution stays in that boundary. An unavailable configured sandbox is not bypassed.
  • SSH and Docker read it as a POSIX path on the backend. Relative remote paths need an absolute POSIX worktree binding. A guarded change prevents the command list from running if the directory is unavailable; Docker does not create it via -w. With a host sandbox policy, explicit remote workdirs are refused until backend-native authorization exists.
  • Results include the local starting cwd, or requested_cwd for remote paths. Not an ending directory or persistent state.
  • Tool-call notation; the Python export is an AgentTool, not a shell function.

Web

ToolWhat it does
web_searchKeywords to relevant URLs, multiple backends
web_fetchURL to readable text; trafilatura gives cleaner extraction
BackendKey
DuckDuckGo, arXivNone, always available
BraveBRAVE_API_KEY
ExaEXA_API_KEY
FirecrawlFIRECRAWL_API_KEY
Google PSEGOOGLE_PSE_API_KEY and GOOGLE_PSE_CX
JinaJINA_API_KEY
KagiKAGI_API_KEY
MiniMaxMINIMAX_CODE_PLAN_KEY, MINIMAX_CODING_API_KEY or MINIMAX_API_KEY
Moonshot (Kimi)KIMI_API_KEY or MOONSHOT_API_KEY
PerplexityPERPLEXITY_API_KEY
SearXNGSEARXNG_URL, a self-hosted instance
SerperSERPER_API_KEY
TavilyTAVILY_API_KEY
You.comYDC_API_KEY or YOU_API_KEY
OllamaLocal Ollama (ollama signin), or OLLAMA_API_KEY for Ollama Cloud
The Web Search switch and backend selection
  • Per message. Providers with their own search (ChatGPT subscription, OpenAI Responses API, Anthropic) search through the provider: one "Searched the web" step per search with sources, a sources row on the answer, and no local web_search.
  • Other providers, Gemini included (its grounding cannot combine with function tools), get the local tool.
  • Off excludes both, even in automatic tool mode. On makes the schema available immediately, including when Tools is off, and still respects disabled tools and permissions. Tool profiles belong to each conversation and survive tab changes and refreshes.
  • Keys apply to the next call without restart. An unavailable saved default falls back; a named unavailable provider gives the reason and lists usable ones.
  • An unpinned search tries the saved default, then every other available web backend (arXiv only when named). When all fail with no key configured, the error points to Settings > Search.
  • DuckDuckGo reads its no-JavaScript page and returns about ten first-page hits; a bot challenge or unreadable page is an error, not an empty search.
  • combine="race" returns the first nonempty success; unrunnable providers are skipped, and if none runs the error lists each reason. combine="rrf" keeps results completed before the deadline. Total failure is an error, distinct from an empty search. Running requests finish under their transport timeouts.

Desktop

ToolWhat it does
computer_useOperate application windows in the background (screenshot and Accessibility tree), the whole screen when you turn it on, built-in browser Pages, your own Chrome or Edge, or the screen of a machine you set up. One step, a batch or Python code. One approval per application; a machine you set up asks nothing. Needs macOS Accessibility and Screen Recording for the runtime, Linux X11 with AT-SPI and xdotool, or Windows UI Automation. Computer use
terminal_useThe built-in Desktop Terminal, including one you already opened

Images and PDF

ToolWhat it does
image_generatePrompt to a saved PNG. One of OpenAI (OPENAI_API_KEY), Gemini (GEMINI_API_KEY or GOOGLE_API_KEY), fal (FAL_KEY)
image_analyzeDescribe or answer about an image, local path or URL. Any configured OpenAI, Anthropic or Gemini vision key.
pdfExtract text, with offset and limit paging. pypdf, bundled with the complete release.

Image tools return an error when the provider is unavailable, its request fails, or an image cannot be saved.

Session and collaboration

DomainToolWhat it does
Open workopen_workWhat the Agent still owes you here, in its instructions every turn: Open work
Planningtask_start, task_step, task_listA task names a stretch of work and lists its steps; one is open per agent. task_step finishes the current step and starts the next, adds or drops steps, or ends the task with its result. Writing starts nothing. Web shows it as a task block in the reply, with each step's work under it.
Executionlist_jobs, job_outputList this session's background tasks; wait for or inspect a result. Access checks the dispatching session and ancestors.
EntityagentSpawn an agent and collect its reply, or to= hand a tracked task to an existing one. run_in_background=true returns a task id. start_from: clean, inherit or SID:MSG_ID. archive_when_done=true archives after the result returns.
Entitylist_agentsNames, addresses, sizes, busy state; scope="archived" for archived ones
Entityarchive_agentLeaves list_agents, refuses send_message and agent(to=); read_conversation and agent(start_from="SID:MSG_ID") still work. Any session may archive any agent. One-way.
Communicationsend_messageTo an existing agent, by "SID:HEAD" or name. No task or id, so anyone may write to anyone. Empty message with notify_when_idle=true gets one notice with its latest reply when idle.
Communicationread_conversationAny agent's history as plain text, tool calls included, with turn ranges and a character budget

The four domains: agent collaboration.

When a background agent finishes
  • The sender gets a notice turn marked automated, after any running turn; every agent finished meanwhile arrives in the same notice.
  • None if already read with job_output (which also waits for a send_message reply by delivery_id), handed back by notify_when_idle, or cancelled.
  • The notice carries the task and final reply, not the transcript; use read_conversation for the steps.
  • A message to a busy agent queues until it is free.
  • job_output works when the collaboration message allowance is exhausted and does not consume it. New deliveries still obey limits.
  • Cancel through execution controls: API execution.command with action="execution.cancel" and the current version. There is no job_stop.
ToolWhat it does
programInvoke any registered Agent method
mixture_of_agentsAsk N models in parallel, then synthesize; defaults take one per provider from the model registry, at least 2 needed. Error for unknown references, all references failing, or failed synthesis; success stands if some fail or its text says Error.
ask_user_questionAsk 1–N questions with options. Needs an interactive frontend; missing input infrastructure, invalid arrays and non-interactive contexts return tool errors.
chat_sendPost into the originating chat channel; hidden elsewhere. In an ambient group the only way to speak; elsewhere a short note before long work. At most 5 per turn.
send_fileAttach a file for the person; each surface delivers it when the turn ends
exit_plan_modeLeave Plan and restore the prior mode. Plan is entered from the selector; the model cannot enter it.
canvasWrite into named blocks of a markdown file. set with content="" clears; omitted content is an error. Explicit validation and process failures are errors; content beginning Error: stays successful.
memory_search, memory_get, memory_updateSearch by meaning or exact string; get what exists, one file, section, block or a cited chat message; add or correct records. Recording the conversation happens in the background. One workspace per instance, shared by every agent and conversation, chat channels included: who can talk to your bot.
worktree_create, worktree_merge, worktree_discard, worktree_list, worktree_keepGit worktrees. worktree_create also opens a PR: pr="123", "#123" or a URL, via gh. Needs git.
remindNotify at a time or wake the agent: reminders
scheduler (alias cron)Register, list and delete recurring agent tasks
save_routineSave this work as a skill: routines
skillLoad a skill's instructions into this turn: skills
pluginGuide, install and reload a plugin: plugins
create_goal, get_goal, update_goalA persistent objective for this chat, only when explicitly asked: Goal
handoff, always_on_schedule, always_on_report, always_on_preferenceAlways-on conversations: hand work to another conversation, set the next check-in, report findings, remember preferences: Always-on Agents
list_mcp_resources, read_mcp_resource, list_mcp_prompts, get_mcp_promptMCP resources and prompts (the mcp_meta directory). Needs a configured MCP server.
tool_searchLoad a deferred tool; its schema joins the next request
helpA tool guide by name (help("self_update.prepare")), or a tool's overview
self_updateChange OpenProgram from an isolated worktree through build, trial, switch, rollback and repair. status (default), begin, prepare, retry, cancel, versions, undo; each follows the permission mode. Needs an installation from sealed versions, or the development instance of a source checkout. Self-update
Tool guides

Tools with many rules keep their schema short and deliver the rest as guides.

WhenGuide
First result of computer_use for a target, or of self_updateStarts with its guide and lists further ones
First self_update(action="prepare")Refused once with the guide; the next call runs
After compactionDelivered again when needed

Plain Python execute(...) calls keep their string results.

Last updated · 2026-11-25