Run a command here and receive a digest of its output
local_llm_runRun shell commands and get an AI-digested summary, so lengthy logs, test results, or listings become easy to interpret without reading raw output.
Instructions
Execute a shell command on this host (bash -c, this user's privileges, stdin closed) and have the local worker model digest the output for you. You receive the digest plus a trailer (turn id, artifact ref, exit code, raw size); the raw output is stored as an artifact you can slice with local_llm_artifact. Use this instead of your own shell tool whenever the command would print more than you need to read (logs, tests, builds, listings, git output, grep results); rule of thumb: anything over ~40 lines / 2 KB of output belongs here, while commands that print little or nothing run directly. Placeholders such as [SECRET-1] in the command are expanded server-side before execution and never appear in the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the command. Default: the server's own cwd. | |
| task | No | What to report from the output. Default: outcome, every error/warning verbatim, key values. | |
| command | Yes | The shell command to run, e.g. 'journalctl -u nginx --since -1h' or 'pytest -q'. | |
| verbatim | No | Copy the matching output lines byte for byte instead of digesting (the worker only locates them). Only for text you must reproduce or edit (a function, a config block, an error with its stack). NOT for questions, counts, summaries or listings: those need the digest, which is the default. | |
| timeout_s | No | Kill the command after this many seconds (0 = server default). | |
| max_output_chars | No | Soft budget for the digest (0 = server default). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |