# Anthropic integration

> Anthropic's Claude API for text generation, tool use, message batches, token counting, and file uploads.

- Authentication: apiKey

## Tools (40)

- **Archive Agent**: Make an agent read-only — new sessions cannot reference it.
- **Archive Environment**: Archive an environment (existing sessions keep running, new ones can't reference it).
- **Archive Session**: Archive a session (preserves history, prevents new events).
- **Cancel Message Batch**: Begin cancellation of an in-progress message batch.
- **Count Message Tokens**: Count the input tokens a Messages request would consume without generating a response.
- **Create Agent**: Create a reusable, versioned agent configuration for Claude Managed Agents.
- **Create Environment**: Create a sandbox environment template for Managed Agents sessions.
- **Create Message**: Send a conversation to Claude and receive a generated assistant message (text, tool calls, or thinking).
- **Create Message Batch**: Submit a batch of Messages requests to process asynchronously at 50% cost.
- **Create Session**: Start a Managed Agents session bound to an agent and environment.
- **Create Skill**: Create a new custom Skill (reusable domain expertise) for use with the Messages API and Managed Agents.
- **Delete Environment**: Permanently delete a sandbox environment.
- **Delete File**: Delete an uploaded file.
- **Delete Message Batch**: Delete a message batch and its results.
- **Delete Session**: Permanently delete a session and its sandbox.
- **Delete Skill**: Delete a custom Skill.
- **Download File Content**: Download the raw bytes of an uploaded file.
- **Get File Metadata**: Fetch metadata for a single uploaded file.
- **Get Message Batch Results**: Stream the JSONL results of a completed message batch.
- **Get Model**: Retrieve metadata for a single Claude model by ID.
- **List Agent Versions**: Fetch the version history of an agent.
- **List Environments**: List sandbox environments for Managed Agents.
- **List Files**: List uploaded files.
- **List Message Batches**: List all message batches for the organization.
- **List Models**: List Claude models available to the calling API key.
- **List Sessions**: List Managed Agents sessions with forward and backward pagination.
- **List Skills**: List custom and Anthropic-provided Skills.
- **List Skill Versions**: List all versions of a Skill.
- **Retrieve Agent**: Get an agent's current configuration.
- **Retrieve Environment**: Get a single sandbox environment by ID.
- **Retrieve Message Batch**: Get the current status and metadata of a message batch (poll here for completion).
- **Retrieve Session**: Get the current state of a Managed Agents session.
- **Retrieve Skill**: Get metadata for a single Skill.
- **Retrieve Skill Version**: Get metadata for a single Skill version.
- **Send Session Events**: Send user messages, tool confirmations, or interrupts to a running session.
- **Stream Session Events**: Stream a session's event history and live output via server-sent events.
- **Update Agent**: Update an agent (creates a new version on any config change).
- **Update Session**: Update a session's tools or MCP servers mid-flight (session must be idle).
- **Upload File**: Upload a file (PDF, image, text) for reuse across Messages API calls.
- **Upload Skill Version**: Upload a new version of a Skill from a zipped bundle of files.

## Related prompts

- [Auto-brief every new HubSpot deal with Claude research](https://www.generalinput.com/prompts/auto-brief-every-new-hubspot-deal-with-claude-research.md)
- [Nightly bulk content drafts from a Google Sheets backlog](https://www.generalinput.com/prompts/nightly-bulk-content-drafts-from-a-google-sheets-backlog.md)
- [Claude-powered Granola to Linear action items with a Slack recap](https://www.generalinput.com/prompts/claude-powered-granola-to-linear-action-items-with-a-slack-recap.md)
- [Auto-triage every new Zendesk ticket with Claude](https://www.generalinput.com/prompts/auto-triage-every-new-zendesk-ticket-with-claude.md)

Connect Anthropic in General Input: https://www.generalinput.com/apps/anthropic