Run zcode agent
zcode_runDelegate coding tasks to a local zcode agent that reads and edits files, runs shell commands, and returns a session ID for follow-up conversations.
Instructions
Delegate a development task to the zcode coding agent. zcode works inside the given directory: it can read/edit files, run shell commands and git. Returns zcode's final answer plus a session_id that can be used to send follow-ups in the same conversation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute path of the project directory zcode should work in (required for any file work). | |
| mode | No | Permission mode. yolo = no confirmations (default, suitable for headless delegation); plan = read-only analysis. | |
| model | No | Model id, e.g. GLM-5.3 (default) or GLM-5.3-Flash. | |
| prompt | Yes | Task instruction for zcode. Be concrete: what to change, where, and how to verify. | |
| session_id | No | Continue a previous zcode conversation (from an earlier zcode_run result). | |
| timeout_ms | No | Turn timeout in ms (default 600000 = 10 min, max 3600000 = 1 h). | |
| reasoning_level | No | Reasoning effort: low | high | max (default max). |