Search the documentation
50 pages for position.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it. Cut at 50, so a narrower query shows the rest.
optimizing-for-cost-and-intelligence
Claude Developer Platform · in the page
about-claude/models/optimizing-for-cost-and-intelligence
…sk. Anything that changes per request, such as a timestamp or a queue position, placed ahead of the stable prefix turns every request into a full cache write: on the triage run in [Trim input and cont…
content-moderation
Claude Developer Platform · in the page
about-claude/use-case-guides/content-moderation
…esponse is identified by its `id`, which corresponds to the message's position in the batch. Keep in mind that finding the optimal batch size for your specific needs may require some experimentation.…
Create the full URL from the GitHub repository
Claude Developer Platform · in the page
about-claude/use-case-guides/legal-summarization
…uld present an unbiased and fair depiction of the legal arguments and positions. </Accordion> </AccordionGroup> See the guide on [establishing success criteria](https://platform.claude.com/docs/en/…
browser-use-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/browser-use-tool
…scroll_direction`, `scroll_amount?`, `tab_id?` | Scroll at a viewport position. `scroll_direction` is `"up"`, `"down"`, `"left"`, or `"right"`; `scroll_amount` is in scroll-wheel notches, 1 to 10, def…
build-a-tool-using-agent
Claude Developer Platform · in the page
agents-and-tools/tool-use/build-a-tool-using-agent
…before the # tool_use block, so filter by type rather than assuming position. TOOL_USE=$(echo "$RESPONSE" | jq '.content[] | select(.type == "tool_use")') TOOL_USE_ID=$(echo "$TOOL_USE" | jq -r…
computer-use-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/computer-use-tool
…members, a short text acknowledgment such as `OK` is enough (`cursor_position` returns the coordinates as text): ```json { "role": "user", "content": [ { "type": "tool_result", "…
memory-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/memory-tool
…ly at: {$path}"; case 'str_replace': $position = strpos($store[$path] ?? '', $input['old_str']); if ($position === false) { retu…
Process results programmatically
Claude Developer Platform · in the page
agents-and-tools/tool-use/programmatic-tool-calling
…as callable Python functions lets it use that strength: * **Tool composition:** Chained calls, loops, and conditionals are ordinary Python control flow instead of a series of model round trips * **R…
server-tools
Claude Developer Platform · in the page
agents-and-tools/tool-use/server-tools
…tool_use` block and its result block pair up by `tool_use_id`, not by position: in this flow they arrive in two different responses, and the `server_tool_use` block is not repeated in the second one.…
tool-search-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-search-tool
…"error_message": "Invalid regular expression pattern: missing ) at position 1" } } ``` The `error_code` field has four possible values: * `invalid_tool_input`: the search input was invalid, for…
Beta
Claude Developer Platform · in the page
api/beta
…tant turn back verbatim, including this block in its original position. The block marks the boundary between content produced before and after a fallback hop, and the server relies on…
Messages
Claude Developer Platform · in the page
api/beta/messages
…tant turn back verbatim, including this block in its original position. The block marks the boundary between content produced before and after a fallback hop, and the server relies on…
Batches
Claude Developer Platform · in the page
api/beta/messages/batches
…turn back verbatim, including this block in its original position. The block marks the boundary between content produced before and after a fallback hop, and the server relies…
Create a Message Batch
Claude Developer Platform · in the page
api/beta/messages/batches/create
…turn back verbatim, including this block in its original position. The block marks the boundary between content produced before and after a fallback hop, and the server relies…
Retrieve Message Batch results
Claude Developer Platform · in the page
api/beta/messages/batches/results
…l used for billing. This object provides a read-only decomposition for observability — for example, how many of the billed output tokens were spent on internal reasoning that m…
Count tokens in a Message
Claude Developer Platform · in the page
api/beta/messages/count_tokens
…tant turn back verbatim, including this block in its original position. The block marks the boundary between content produced before and after a fallback hop, and the server relies on…
Create a Message
Claude Developer Platform · in the page
api/beta/messages/create
…tant turn back verbatim, including this block in its original position. The block marks the boundary between content produced before and after a fallback hop, and the server relies on…
Compliance API
Claude Developer Platform · in the page
api/compliance
…runner_pool_session_queue_updated"` An admin changed a session's position in its self-hosted runner pool's queue: requeued it onto a different runner, dismissed it from the queue, or re-admitted…
Activities
Claude Developer Platform · in the page
api/compliance/activities
…runner_pool_session_queue_updated"` An admin changed a session's position in its self-hosted runner pool's queue: requeued it onto a different runner, dismissed it from the queue, or re-admitted…
Query compliance activities
Claude Developer Platform · in the page
api/compliance/activities/list
…runner_pool_session_queue_updated"` An admin changed a session's position in its self-hosted runner pool's queue: requeued it onto a different runner, dismissed it from the queue, or re-admitted…
Apps
Claude Developer Platform · in the page
api/compliance/apps
…y of object` Transcript turns for this page, ordered by transcript position. `created_at` is a commit timestamp and may tie or invert under concurrent writes; do not re-sort by it. - `id: string…
Sessions
Claude Developer Platform · in the page
api/compliance/apps/sessions
…y of object` Transcript turns for this page, ordered by transcript position. `created_at` is a commit timestamp and may tie or invert under concurrent writes; do not re-sort by it. - `id: string…
Remote
Claude Developer Platform · in the page
api/compliance/apps/sessions/remote
…y of object` Transcript turns for this page, ordered by transcript position. `created_at` is a commit timestamp and may tie or invert under concurrent writes; do not re-sort by it. - `id: string…
Messages
Claude Developer Platform · in the page
api/compliance/apps/sessions/remote/messages
…y of object` Transcript turns for this page, ordered by transcript position. `created_at` is a commit timestamp and may tie or invert under concurrent writes; do not re-sort by it. - `id: string…
Retrieve remote session messages
Claude Developer Platform · in the page
api/compliance/apps/sessions/remote/messages/list
…y of object` Transcript turns for this page, ordered by transcript position. `created_at` is a commit timestamp and may tie or invert under concurrent writes; do not re-sort by it. - `id: string…
errors
Claude Developer Platform · in the page
api/errors
…urns a 400 `invalid_request_error`. The error message starts with the position of the offending block (for example, `messages.1.content.0`) and contains: ```text wrap `thinking` or `redacted_thinking…
Messages
Claude Developer Platform · in the page
api/messages
…d resolves false is withheld from the served schema. - `cursor_position: optional ComputerCursorPositionConfig or null` `cursor_position`'s config overrides. - `defer_loading:…
Batches
Claude Developer Platform · in the page
api/messages/batches
…solves false is withheld from the served schema. - `cursor_position: optional ComputerCursorPositionConfig or null` `cursor_position`'s config overrides. - `defer_…
Create a Message Batch
Claude Developer Platform · in the page
api/messages/batches/create
…solves false is withheld from the served schema. - `cursor_position: optional ComputerCursorPositionConfig or null` `cursor_position`'s config overrides. - `defer_…
Retrieve Message Batch results
Claude Developer Platform · in the page
api/messages/batches/results
…l used for billing. This object provides a read-only decomposition for observability — for example, how many of the billed output tokens were spent on internal reasoning that m…
Count tokens in a Message
Claude Developer Platform · in the page
api/messages/count_tokens
…d resolves false is withheld from the served schema. - `cursor_position: optional ComputerCursorPositionConfig or null` `cursor_position`'s config overrides. - `defer_loading:…
Create a Message
Claude Developer Platform · in the page
api/messages/create
…d resolves false is withheld from the served schema. - `cursor_position: optional ComputerCursorPositionConfig or null` `cursor_position`'s config overrides. - `defer_loading:…
fallback-credit
Claude Developer Platform · in the page
build-with-claude/fallback-credit
…It is accepted on any request without a beta header. The API uses its position to validate the thinking blocks around it, so a request that echoes thinking blocks from both sides of that boundary is r…
mid-conversation-effort-example
Claude Developer Platform · in the page
build-with-claude/mid-conversation-effort-example
…every substantive task, sized to the problem's " "natural decomposition rather than the maximum the tool allows. See the Workflow tool's " "description for standing consent, granularity g…
mid-conversation-system-messages
Claude Developer Platform · in the page
build-with-claude/mid-conversation-system-messages
…evel `system` field, ahead of every message in the conversation. That position is great for [prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching): the system prompt is…
preserved-thinking
Claude Developer Platform · in the page
build-with-claude/preserved-thinking
…takes your own summarization prompt, such as "preserve every ticker, position size, and stated assumption". * [Context editing](https://platform.claude.com/docs/en/build-with-claude/context-editing)…
Request 2 caches its request content (not the response)
Claude Developer Platform · in the page
build-with-claude/prompt-caching
…ding at that block. The system does not write entries for any earlier position. Because the hash is cumulative, covering everything up to and including the breakpoint, changing any block at or before…
refusals-and-fallback
Claude Developer Platform · in the page
build-with-claude/refusals-and-fallback
…| Keep it exactly where it appeared. The API uses its position to validate the thinking blocks around it, so a request that echoes thinking blocks from both sides of the boundary is re…
skills-guide
Claude Developer Platform · in the page
build-with-claude/skills-guide
…atically loads and uses Skills when relevant to your request. 4. **Composition:** Multiple Skills compose together for complex workflows. Claude loads full Skill instructions only when needed. ***…
structured-outputs
Claude Developer Platform · in the page
build-with-claude/structured-outputs
…empty `"properties"` field </Accordion> <Accordion title="Composition and inheritance"> Your Java classes can use composition and inheritance to share structure when defining JSON schem…
thinking
Claude Developer Platform · in the page
build-with-claude/thinking
…nking#preserved-thinking) changes the cached prefix from that block's position onward. Blocks passed back unchanged keep the cache intact. A worked demonstration with usage output is on the [Steering…
thinking-tool-workflows
Claude Developer Platform · in the page
build-with-claude/thinking-tool-workflows
…generated text # through a file keeps it out of shell-expansion position later. ant messages create --transform content --format jsonl \ > assistant_content.json <<'YAML' mod…
vision-coordinates
Claude Developer Platform · in the page
build-with-claude/vision-coordinates
…t and y increasing downward. The coordinates Claude returns are pixel positions in the image Claude sees: your image after Claude resizes it to fit the model's native resolution (see [How Claude resiz…
working-with-messages
Claude Developer Platform · in the page
build-with-claude/working-with-messages
…de's response You can pre-fill part of Claude's response in the last position of the input messages list. Use this technique to shape Claude's response. The following example uses `"max_tokens": 1` t…
API usage primer for Claude
Claude Developer Platform · in the page
claude_api_primer
…ude's response You can prefill part of Claude's response in the last position of the input messages list. Use this technique to shape Claude's response. The following example uses `"max_tokens": 1` t…
First request
Claude Developer Platform · in the page
manage-claude/claude-code-analytics-api
…est. 3. Continue until `has_more` is `false`. The cursor encodes the position of the last record and ensures stable pagination even as new data arrives. Each pagination session maintains a consistent…
Fetch the first page (newest activities first) and capture its trailing cursor.
Claude Developer Platform · in the page
manage-claude/compliance-activity-feed
…equest that fails (5xx, timeout, network error) does not advance your position. Retry the same request with the same cursor. Only move to the next cursor after you have stored the page it points past.…
WARNING: This operation PERMANENTLY deletes the chat, all of its messages,
Claude Developer Platform · in the page
manage-claude/compliance-content-data
…or declared type. The response carries these headers: * `Content-Disposition: attachment; filename*=utf-8''<percent-encoded filename>` carries the original upload file name in RFC 5987 extended form…
compliance-errors
Claude Developer Platform · in the page
manage-claude/compliance-errors
…The message starts with the parameter name (followed by the element's position for an array parameter), then states the constraint that failed. Three common cases are shown: a `limit` above the endpoi…
multiagent-orchestration
Claude Developer Platform · in the page
managed-agents/multiagent-orchestration
…ses, the advisor entry is echoed last in the roster regardless of the position it was submitted in. The advisor model must meet a minimum capability bar, and the agent's own model must not be more ca…