Claude CLI
AI-generatedSummary
Runs the locally installed Claude CLI once for each incoming item, passing the prompt to claude -p and returning its output. Optionally extracts text from a PDF binary and appends it to the prompt before the call.
Inputs
- Prompt (required) — Text passed to the Claude CLI.
- Model — Optional model ID passed with
--model; an empty value uses the CLI default. - Attach PDF — When enabled, extracts up to 4,000 characters of text from the PDF in the selected binary field and appends it to the prompt. Extraction failures are ignored.
- Input Binary Field — Binary property containing the PDF; shown when Attach PDF is enabled. Defaults to
data. - Timeout (ms) — Time limit for the Claude CLI process; defaults to 120,000 ms.
Output shape
One output item per input item, paired with its source item.
Each successful item contains
json.success: true, trimmed CLI stdout injson.output, and trimmed stderr injson.error. If the CLI call fails and Continue On Fail is enabled, the item containssuccess: false, an emptyoutput, and the error message; otherwise the node throws an error.