Run Remote Task
remote_taskRun ordered file, command, and coding steps on the user's PC in one call, batching related work to reduce tool cards and return results for review.
Instructions
Run work on the user's PC. Steps run in order in one call; batch related work to keep tool cards few. Do direct work yourself: read or search to look at files, edit, write, or patch for focused changes, run for commands, code for several reads at once, and call for any other Desktop Commander tool. Use one codex step for investigation or changes across several files. It needs execution=async; then call remote_inspect with only its task_id to wait for the answer, review, and usage. A step cannot see an earlier step's result in the same call. When a file's content decides the next step, read it in one call and act in the next. execution=sync waits for the steps; execution=async returns a task ID. Use async for codex and for commands that may run longer than about a minute. When an administrator has registered an admission policy, run, call, and code steps, and paths outside the workspace or marked sensitive, need the user's approval: remote_task answers APPROVAL_REQUIRED with a task_id, then call open_approval and wait with remote_inspect. Each field's description covers the rest, including quota approval and request_id reuse. For relevant tasks, use the Codex Skills catalog from MCP instructions and read only selected SKILL.md files. If the catalog is not visible, use a run step with: node /app/src/skills/catalog.mjs; discover once per relevant task, not for unrelated chat.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"steps": "<steps>"
},
"name": "remote_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | ||
| scratch | No | Create a per-task temporary directory under the configured work area. Relative paths and the {{scratch}} token resolve there; absolute paths still pass admission. This does not change run/call/code or Codex permissions, and Codex steps reject it: name an absolute cwd instead. | |
| execution | No | sync | |
| stop_on_error | No | ||
| task_timeout_ms | No | ||
| max_exposed_chars | No |