1,334 pages for file.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
handling-stop-reasons
Claude Developer Platform · in the page
build-with-claude/handling-stop-reasons
…ludes a `container`, also send its ID back so that the turn keeps its files. For details, see the code execution tool’s [Container reuse](https://platform.claude.com/docs/en/agents-and-tools/tool-use/…
message-threads
Claude Developer Platform · in the page
build-with-claude/message-threads
…of the fixed fields, which it uses to check later requests. It holds files by reference, so keep every file the conversation uses available while you use the thread. For ZDR eligibility across all f…
mid-conversation-effort-example
Claude Developer Platform · in the page
build-with-claude/mid-conversation-effort-example
…tifies the cost. </Note> ## Set up the loop The example is a single file. The constants control the effort level, the fan-out shape, and how often the mode refresher is re-sent. `MAX_CONCURRENT` cap…
mid-conversation-system-messages
Claude Developer Platform · in the page
build-with-claude/mid-conversation-system-messages
…tion detects something Claude should treat as an operator-level fact: files changed on disk, the user toggled an auto-approve setting, available tools changed, or the remaining token budget dropped be…
overview
Claude Developer Platform · in the page
build-with-claude/overview
…s) | Anthropic’s pre-built skills for PowerPoint, Excel, Word and PDF files. | | [Batch processing](https://platform.claude.com/docs/en/build-with-claude/batch-processing) | Processes many Messages AP…
pdf-support
Claude Developer Platform · in the page
build-with-claude/pdf-support
…only. Microsoft Foundry: availability: stable note: "`file_id` sources need a Hosted on Anthropic deployment." --- You can ask Claude about any text, pictures, charts, and tables in P…
preserved-thinking
Claude Developer Platform · in the page
build-with-claude/preserved-thinking
…| From the first request, use a [`file_id` from the Files API, or base64](https://platform.claude.com/docs/en/build-with-claude/preserved-thinking#files-by-id).…
change-tools-or-instructions
Claude Developer Platform · in the page
build-with-claude/preserved-thinking/change-tools-or-instructions
…people can edit Ask whether your user would expect Claude to trust a file, such as an `AGENTS.md` or `CLAUDE.md` that other people can edit, or stored memory. If not, send its text only in a `tool_re…
fix-bound-to-a-different-conversation
Claude Developer Platform · in the page
build-with-claude/preserved-thinking/fix-bound-to-a-different-conversation
…/en/build-with-claude/preserved-thinking/change-tools-or-instructions#files-by-id), an MCP server’s changed tool list (see [Pin an MCP server’s tool list](https://platform.claude.com/docs/en/agents-an…
prefix-checks
Claude Developer Platform · in the page
build-with-claude/preserved-thinking/prefix-checks
…| | Rebuilds the system prompt with the date, a mode, or instruction files | Stop changing `system`. [Append your own instructions as a system message](https://platform.claude.com/docs/en/build-with-…
claude-prompting-best-practices
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/claude-prompting-best-practices
…sing. Try to infer the user's intent about whether a tool call (e.g., file edit or read) is intended or not, and act accordingly. </default_to_action> ``` On the other hand, if you want the model to…
prompting-claude-fable-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-fable-5
…ference them. Provide a place to write notes, as simple as a Markdown file: ```text wrap Store one lesson per file with a one-line summary at the top. Record corrections and confirmed approaches alik…
Delivering work
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-fable-5-1
…cope and test coverage, search triggering, safeguard false positives, file edits, long outputs, subagents, and vision. --- For the model’s specifications, pricing, and availability, see [Claude Fable…
Finishing work
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-fable-5-2
…e task. You may meet ordinary obstacles like errors, timeouts, locked files, empty results or failing tools. Diagnose them first, and when they are not real blockers, work through them with the access…
prompting-claude-haiku-5-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-haiku-5-5
…lared dependencies, install them with its own package manager and lockfile (for example, npm install or pip install -r requirements.txt), never through sudo or the system package manager, unless told…
prompting-claude-opus-4-8
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-opus-4-8
…ts in the same turn when fanning out across items or reading multiple files. ``` ## Design and frontend defaults Claude Opus 4.8 has strong design instincts, with a consistent default house style: w…
prompting-claude-opus-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-opus-5
…coding:** Claude Opus 5 is strongest on difficult coding tasks: multifile features, larger refactors, and end-to-end feature work. It completes full tasks rather than leaving stubs or placeholders, a…
prompting-claude-opus-5-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-opus-5-5
…k’s parts in a checklist the model updates, such as a to-do tool or a file. If a turn ends with items still open and no blocker stated, send a short user message naming them, such as the following one…
prompting-claude-sonnet-5-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5
…for is done and checked, stop and report. Don't add features, tests, files, docs, or refactors that weren't asked for. If you think one would help, mention it at the end instead of doing it. ``` Wit…
skills-guide
Claude Developer Platform · in the page
build-with-claude/skills-guide
…] ) puts message ``` </CodeGroup> ### Downloading generated files When Skills create documents (Excel, PowerPoint, PDF, Word), they return `file_id` attributes in the response. You must use…
structured-outputs
Claude Developer Platform · in the page
build-with-claude/structured-outputs
…StructuredOutputModelTrait; public string $street; } class Profile implements StructuredOutputModel { use StructuredOutputModelTrait; #[Constrained(description: 'Age…
task-budgets
Claude Developer Platform · in the page
build-with-claude/task-budgets
…audit output>" }, { "type": "text", "text": "Also check the Dockerfile." } ] } ``` Server-side [compaction](https://platform.claude.com/docs/en/build-with-claude/compaction-threshold) during a…
thinking
Claude Developer Platform · in the page
build-with-claude/thinking
…{"type":"tool_use","id":"toolu_01D7FLrfh4GYq7yT1ULFeyMV","name":"edit_file","input":{}}} ``` Under `"updates"`, treat a block as a progress update as soon as one of its `thinking_delta` events carrie…
thinking-steering-and-cost
Claude Developer Platform · in the page
build-with-claude/thinking-steering-and-cost
…p PHP function fetchArticleContent($url) { $content = file_get_contents($url); $lines = explode("\n", $content); $cleanedLines = array_filter(array_map('trim', $lines))…
token-counting
Claude Developer Platform · in the page
build-with-claude/token-counting
…-tools/mcp-connector) * `image` or `document` blocks with a `url` or `file` source Send images and PDFs as base64 to count them. For requests that use server tools or MCP servers, the Messages API re…
vision
Claude Developer Platform · in the page
build-with-claude/vision
…* [claude.ai](https://claude.ai/). Upload an image like you would a file, or drag and drop an image directly into the chat window. * [Playground](https://platform.claude.com/playground) in the Claud…
vision-coordinates
Claude Developer Platform · in the page
build-with-claude/vision-coordinates
…is setting never lets an image past them. * Images supplied by URL or file ID are checked once their bytes have been fetched; those rejections carry the same message without the leading position, so t…
working-with-messages
Claude Developer Platform · in the page
build-with-claude/working-with-messages
…ges in requests. You can supply images using the `base64`, `url`, or `file` source types. The `file` source type references an image uploaded through the [Files API](https://platform.claude.com/docs/e…
claude_api_primer
Claude Developer Platform · in the page
claude_api_primer
…CLI # Option 1: base64-encoded image (@ prefix auto-encodes binary files as base64) curl -sSo vision-example.jpg \ https://platform.claude.com/docs/images/vision-example.jpg ant messages c…
apply
Claude Developer Platform · in the page
cli-sdks-libraries/cli/apply
…ents, environments, skills, memory stores, deployments, and vaults as files in your repository and keep the API's resources in sync with them using ant apply. --- `ant apply` creates and updates Clau…
On a remote host without a browser:
Claude Developer Platform · in the page
cli-sdks-libraries/cli/authentication
…Authenticate the ant CLI with interactive sign-in, API keys, named profiles, and Workload Identity Federation. --- The `ant` CLI supports several credential sources. The [CLI quickstart](https://plat…
quickstart
Claude Developer Platform · in the page
cli-sdks-libraries/cli/quickstart
…command, with output formatting, response filtering, and YAML or JSON file input. <Frame caption="The ant CLI in action."> <video aria-label="Screen recording of the ant CLI running in a terminal."…
scripting
Claude Developer Platform · in the page
cli-sdks-libraries/cli/scripting
…libraries/cli/scripting description: Version-control API resources as files with ant apply, chain ant CLI commands in scripts, operate on resources from Claude Code, and authenticate curl calls with C…
using
Claude Developer Platform · in the page
cli-sdks-libraries/cli/using
…` ### Global flags | Flag | Description | | ----- | ----- | | `--profile` | Named profile to use for this command (equivalent to setting `ANTHROPIC_PROFILE`). See [Switch between workspaces](https:/…
apple-foundation-models
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/apple-foundation-models
…/ClaudeForFoundationModels.git", from: "0.1.0") ] ``` Or in Xcode: **File** > **Add Package Dependencies…** and enter the repository URL. Then add `ClaudeForFoundationModels` to your target’s depend…
openai-sdk
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/openai-sdk
…st that sets `json_object` or `text` returns a 400 error. * Audio and file inputs are not supported. A request that includes an `input_audio` or `file` content part returns a 400 error. * Prompt cachi…
csharp
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/csharp
…eturn `HttpResponse`: ```csharp using System; using Anthropic.Models.Files; FileDownloadParams parameters = new() { FileID = "file_id" }; var response = await client.Files.Download(parameters); Co…
go
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/go
…docs/en/cli-sdks-libraries/sdks/go#timeouts) disables this error. ## File uploads Request parameters that correspond to file uploads in multipart requests are typed as `io.Reader`. The contents of t…
java
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/java
…examples in this documentation are written as [JDK 25 compact source files](https://openjdk.org/jeps/512), using a bare `void main()` entry point and `IO.println()` for output. The API calls themselv…
For Amazon Bedrock support
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/python
…nv/) to add `ANTHROPIC_API_KEY="my-anthropic-api-key"` to your `.env` file so that your API key isn’t stored in source control. </Tip> For authentication options, including Workload Identity Federati…
Automatically handles tool execution loop
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/ruby
…tion. </Info> ## Installation Add the gem to your application’s `Gemfile` with Bundler: ```bash bundle add anthropic ``` ## Requirements Ruby 3.2.0 or higher. ## Usage ```ruby anthropic = Anthr…
Pins this configuration to one organization. Every plan verifies
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/terraform
…pes and their arguments can change during the beta. [Commit your lock file](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/terraform/operations#pin-the-providers-release) to choose when y…
GitHub's OIDC issuer. Its signing keys come from OIDC discovery.
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/terraform/authentication
…ation) for pipelines and other automation. Use an `ant auth login` profile when you run Terraform yourself at a terminal. Provider blocks and credentials on this page are for the Claude API except for…
behavior
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/terraform/behavior
…e provider uses the first credential it finds, in this order: 1. `profile`, `api_key`, or `auth_token` in the provider block. 2. The `ANTHROPIC_API_KEY` environment variable. 3. The `ANTHROPIC_AUTH_T…
operations
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/terraform/operations
…e newest release and records it in `.terraform.lock.hcl`. Commit that file, so that every machine uses the same release until you run `terraform init -upgrade`. ## Use the provider in a module Any m…
typescript
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/typescript
…t { mcpTools, mcpMessages, mcpResourceToContent, mcpResourceToFile } from "@anthropic-ai/sdk/helpers/beta/mcp"; import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { Std…
get-started
Claude Developer Platform · in the page
get-started
…<Step title="Create your code" stepNumber={6}> Create a file called `quickstart.py`: ```python Python import anthropic client = anthropic.Anthropic() m…
home
Claude Developer Platform · in the page
home
…ate | You manage the conversation history | Sessions keep history and files for you | | Sandbox | Bring your own | Linux container [hosted by Anthropic](https://platform.claude.com/docs/en/managed-a…
access-transparency
Claude Developer Platform · in the page
manage-claude/access-transparency
…s not cover:** Products that are not covered by ZDR (for example, the Files API, Anthropic-hosted stateful applications, and the Batch API) are not covered by Access Transparency. See [Legacy zero dat…
access-transparency-log
Claude Developer Platform · in the page
manage-claude/access-transparency-log
…` has the same 11 required fields and one optional field: * `user_profile_id`, the ID of the [user profile](https://platform.claude.com/docs/en/api/beta/user_profiles) the accessed or preserved data…