run
Execute one self-contained Claude Code task in an isolated scratch directory, returning the final message and a file manifest so you review and copy only approved artifacts.
Instructions
Run one Claude Code task (claude -p) in an isolated scratch directory. Returns Claude's final message plus an artifact manifest (path, bytes, sha256 per file) — file bodies are NEVER included. Claude can read the directories you name but can only write inside its own scratch directory. Read the artifact paths yourself, review them, and only then copy what you approve into the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional explicit list of artifact paths (relative to the artifact root) to report. Omit to report every file the run created. | |
| model | No | Optional Claude model id or alias for this call (for example "sonnet" or a full model name). Omit to use the deployment default from CLAUDE_MCP_MODEL, or Claude Code's own configuration. | |
| prompt | Yes | The complete, self-contained task for Claude. It does not share this conversation, so include everything it needs (paths it may read, the exact question, and the output file it should write). | |
| readDirs | No | Optional extra directories Claude may READ (absolute paths). It still cannot write there. Omit to use the server working directory. | |
| timeoutMs | No | Deadline in milliseconds for the whole run. Defaults to the deployment value (CLAUDE_MCP_TIMEOUT_MS, else 900000). | |
| maxBudgetUsd | No | Optional ceiling in US dollars for this run, passed to Claude Code as its budget guard (default: CLAUDE_MCP_MAX_BUDGET_USD, else no ceiling). |