Skip to main content
The Anthropic tool allows you to interact with the Claude AI model. It provides a simple interface to send prompts and receive responses.
  • ANTHROPIC_INVOKE
    • Send prompts to Claude AI
    • Receive structured responses via JSON
  • ANTHROPIC_INVOKE_WITH_FILE
    • Send PDFs and images (PNG, JPEG, GIF, WEBP) to Claude together with a prompt
    • Receive text or structured responses via JSON
  • ANTHROPIC_AGENT
    • Run a Claude Managed Agent loop as a single workflow step, with file read/write/edit and web tools
    • Mounts input files for the agent and returns files the agent produces

Connect with an Anthropic API key

For further details, click here. To get an Anthropic API key, please sign up at the official Anthropic website and follow the developer documentaiton. Note: Treat API keys as sensitive information and never commit them to public repositories.

Get a response from Claude

Analyze a PDF or image with Claude

ANTHROPIC_INVOKE_WITH_FILE sends the files in file_link to Claude with the prompt. Claude reads charts, tables and scanned pages, not only text. Limits: up to 20 files and 20 MB in total per request; each image up to 3.75 MB and 8000 px per side. prompt is required. Temperature ranges from 0 to 1.

Extract large JSON schemas with Claude

ANTHROPIC_INVOKE and ANTHROPIC_INVOKE_WITH_FILE send json_schema to Claude as a grammar the API enforces. Anthropic rejects a schema whose compiled grammar is too large (roughly 110 fields on Sonnet 4.6; fields that also allow null lower the ceiling). The json_schema_mode config decides what happens then: result.schema_mode records which read produced the answer: constrained or prompt. When a prompt-mode answer is not JSON or does not match the schema, the step returns a SchemaMismatch error with the detail instead of result.content. The validator matches pattern and patternProperties with a linear-time engine (RE2 syntax): lookaround and backreferences are not available, . does not match a carriage return, and \s covers ASCII whitespace only; \uXXXX escapes work as usual. A schema using unsupported syntax, or $async, is refused as Invalid schema before the prompt-mode read is made (in auto, only after the grammar has rejected the schema).

Run a managed Anthropic agent

ANTHROPIC_AGENT runs a Claude Managed Agent that can read, write, and edit files and use web tools autonomously. Input files (up to 20, passed via files) are mounted under /workspace/inputs/ for the agent, and files the agent writes to /mnt/session/outputs/ are returned as result.files — each entry has content, filename, and fileType, shaped so it can be passed directly to a downstream OUTPUT_FILE step. The agent’s final text output is returned as result.content, along with stop_reason and timed_out. Available models are claude-opus-4-7 (default), claude-sonnet-4-6, and claude-haiku-4-5-20251001. The timeout_sec input sets a hard wall-clock timeout in seconds (60–1800, default 600). If you bring your own Anthropic API key, you must also supply your own agent_id and environment_id in config; in that case the model is fixed on your Anthropic-side Agent and the model selector is ignored.