Skip to main content

Overview

The Anthropic tool allows you to interact with the Claude AI model. It provides a simple interface to send prompts and receive responses.

Key Features

  • ANTHROPIC_INVOKE
    • Send prompts to Claude AI
    • Receive 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

Authentication

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.

Example: Asking Claude a Question

Example: Running a Claude Managed 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.