Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Search the documentation

50 pages for append.

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 …ude/mid-conversation-system-messages), a `{"role": "system"}` message appended to `messages`, instead of editing the top-level `system` field: the cached prefix stays intact. Check that page for which… customer-support-chat Claude Developer Platform · in the page about-claude/use-case-guides/customer-support-chat …s_user_input(self, user_input): self.session_state.messages.append({"role": "user", "content": user_input}) response_message = self.generate_message( messages=self.s… mcp-connector Claude Developer Platform · in the page agents-and-tools/mcp-connector …etaMCPToolParam for _, tool := range listing.Tools { toolNames = append(toolNames, tool.Name) pinnedTools = append(pinnedTools, anthropic.BetaMCPToolParam{ Name: tool.Name, Desc… console Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/console …l fields: **Subdomain** (prefixed to the tunnel domain) and **Path** (appended after it). Fill in one or both, depending on how your proxy's routes are configured. The **Resolves to** line shows the f… Edit docker-compose.yaml: increment the integer in the setup service's Claude Developer Platform · in the page agents-and-tools/mcp-tunnels/deploy-compose …d-tools/mcp-tunnels/deploy-compose#optional-use-a-sample-mcp-server), append it as a service: ```bash cat >> docker-compose.yaml <<'EOF' hello-mcp: image: pytho… advisor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/advisor-tool …ol-2026-03-01"], tools=tools, messages=messages, ) # Append the full response content, including any advisor_tool_result blocks messages.append({"role": "assistant", "content": resp… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …tput is complete break output.append(line) return "".join(output) def restart(self): self.process.kill() se… browser-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/browser-use-tool …error"] = True failed = True tool_results.append(result) return tool_results ``` ```typescript TypeScript const HALT_TEXT = "Not executed: an earlier action in… build-a-tool-using-agent Claude Developer Platform · in the page agents-and-tools/tool-use/build-a-tool-using-agent …choice) # live in a quoted heredoc; the growing messages array is appended as # JSON, which YAML accepts as flow syntax. { cat <<'YAML' model: claude-opus-5-5 max_tokens: 1024… code-execution-tool Claude Developer Platform · in the page agents-and-tools/tool-use/code-execution-tool …output_block in content_item.content: file_ids.append(output_block.file_id) return file_ids # Download the created files for file_id in extract_file_ids(response):… computer-use-tool Claude Developer Platform · in the page agents-and-tools/tool-use/computer-use-tool …Add Claude's response to the conversation history messages.append({"role": "assistant", "content": response.content}) # Run the actions Claude requested, in order, and collect th… fine-grained-tool-streaming Claude Developer Platform · in the page agents-and-tools/tool-use/fine-grained-tool-streaming …nsole.Write(inputJson.PartialJson); toolInputs[delta.Index].Append(inputJson.PartialJson); } } Console.WriteLine(); foreach (var accumulatedInput in toolInputs.Values) {… memory-tool Claude Developer Platform · in the page agents-and-tools/tool-use/memory-tool …ing{"1.0K\t/memories"} for path := range store { listing = append(listing, "1.0K\t"+path) } sort.Strings(listing[1:]) return fmt.Sprintf("Here're the files and directories up… overview Claude Developer Platform · in the page agents-and-tools/tool-use/overview …nion for _, block := range response.Content { assistantContent = append(assistantContent, block.ToParam()) } messages = append(messages, anthropic.NewAssistantMessage(assistantContent...),… parallel-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/parallel-tool-use …else: result = "5:30 PM EST" tool_results.append( {"type": "tool_result", "tool_use_id": tool_use.id, "content": result} ) # Continue conversation with t… server-tools Claude Developer Platform · in the page agents-and-tools/tool-use/server-tools …nue # the turn by re-sending the request with the assistant content appended to messages. curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-ve… text-editor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/text-editor-tool …(2, limit + 1)\n20: if is_prime(num):\n21: primes.append(num)\n22: return primes\n23: \n24: def main():\n25: \"\"\"Main function to demonstrate prime number generation.\"\"… Log at info level Claude Developer Platform · in the page agents-and-tools/tool-use/tool-runner …ify message history:** If the message contains tool calls, the runner appends the assistant message and the tool results, then continues. If there are no tool calls, the loop exits. * **If you modi… tool-search-tool Claude Developer Platform · in the page agents-and-tools/tool-use/tool-search-tool …x. When Claude discovers a deferred tool through tool search, the API appends a `tool_reference` block inline in the conversation, then expands it into the full tool definition before passing it to Cl… tool-use-with-prompt-caching Claude Developer Platform · in the page agents-and-tools/tool-use/tool-use-with-prompt-caching …ocs/en/agents-and-tools/tool-use/tool-search-tool), the definition is appended inline as a `tool_reference` block in the conversation history. The prefix is untouched, so prompt caching is preserved.… troubleshooting-tool-use Claude Developer Platform · in the page agents-and-tools/tool-use/troubleshooting-tool-use …| Use `defer_loading: true` with tool search to append the tool inline instead of modifying the array head.… Beta Claude Developer Platform · in the page api/beta …d workspace, with the same request body (optionally extended by one appended `assistant` message whose content is the partial text — with any trailing whitespace stripped from the final text blo… Deployment Runs Claude Developer Platform · in the page api/beta/deployment_runs …# Returns - `BetaManagedAgentsDeploymentRun object` A persistent, append-only record of a single deployment execution. Records session creation success or failure — no session lifecycle tracking.… Get Deployment Run Claude Developer Platform · in the page api/beta/deployment_runs/retrieve …# Returns - `BetaManagedAgentsDeploymentRun object` A persistent, append-only record of a single deployment execution. Records session creation success or failure — no session lifecycle tracking.… Deployments Claude Developer Platform · in the page api/beta/deployments …rivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt. At most one… Archive Deployment Claude Developer Platform · in the page api/beta/deployments/archive …rivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt. - `t… Create Deployment Claude Developer Platform · in the page api/beta/deployments/create …rivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt. At most one… List Deployments Claude Developer Platform · in the page api/beta/deployments/list …rivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt. - `t… Pause Deployment Claude Developer Platform · in the page api/beta/deployments/pause …rivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt. - `t… Get Deployment Claude Developer Platform · in the page api/beta/deployments/retrieve …rivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt. - `t… Run Deployment Now Claude Developer Platform · in the page api/beta/deployments/run …# Returns - `BetaManagedAgentsDeploymentRun object` A persistent, append-only record of a single deployment execution. Records session creation success or failure — no session lifecycle tracking.… Unpause Deployment Claude Developer Platform · in the page api/beta/deployments/unpause …rivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt. - `t… Update Deployment Claude Developer Platform · in the page api/beta/deployments/update …rivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt. At most one… Memory Stores Claude Developer Platform · in the page api/beta/memory_stores …tion a `memory_version` records. Every non-no-op mutation to a memory appends exactly one version row with one of these values. - `"created"` The memory was created. The first version in a… Memory Versions Claude Developer Platform · in the page api/beta/memory_stores/memory_versions …tion a `memory_version` records. Every non-no-op mutation to a memory appends exactly one version row with one of these values. - `"created"` The memory was created. The first version in a… List memory versions Claude Developer Platform · in the page api/beta/memory_stores/memory_versions/list …tion a `memory_version` records. Every non-no-op mutation to a memory appends exactly one version row with one of these values. - `"created"` The memory was created. The first version in a… Redact a memory version Claude Developer Platform · in the page api/beta/memory_stores/memory_versions/redact …`memory_version` object: one immutable, attributed row in a memory's append-only history. Every non-no-op mutation to a memory produces a new version. Versions belong to the store (not the individual… Retrieve a memory version Claude Developer Platform · in the page api/beta/memory_stores/memory_versions/retrieve …`memory_version` object: one immutable, attributed row in a memory's append-only history. Every non-no-op mutation to a memory produces a new version. Versions belong to the store (not the individual… Messages Claude Developer Platform · in the page api/beta/messages …d workspace, with the same request body (optionally extended by one appended `assistant` message whose content is the partial text — with any trailing whitespace stripped from the final text blo… Batches Claude Developer Platform · in the page api/beta/messages/batches …rkspace, with the same request body (optionally extended by one appended `assistant` message whose content is the partial text — with any trailing whitespace stripped from the final… Create a Message Batch Claude Developer Platform · in the page api/beta/messages/batches/create …rkspace, with the same request body (optionally extended by one appended `assistant` message whose content is the partial text — with any trailing whitespace stripped from the final… Retrieve Message Batch results Claude Developer Platform · in the page api/beta/messages/batches/results …er render-shaping fields), or with the same body plus one appended `assistant` message whose content is the partial text (with any trailing whitespace stripped from the final t… Count tokens in a Message Claude Developer Platform · in the page api/beta/messages/count_tokens …sult block carries stop_reason='max_tokens', and a truncation note is appended to the advice text the worker model sees (inside the encrypted blob in redacted mode). When set, the server also emits a… Create a Message Claude Developer Platform · in the page api/beta/messages/create …d workspace, with the same request body (optionally extended by one appended `assistant` message whose content is the partial text — with any trailing whitespace stripped from the final text blo… Events Claude Developer Platform · in the page api/beta/sessions/events …n high-risk; it does not execute and a synthetic error tool result is appended. - `type: "deny"` - `reason_code: string` The judgement's grounds in registry-bo… List Events Claude Developer Platform · in the page api/beta/sessions/events/list …n high-risk; it does not execute and a synthetic error tool result is appended. - `type: "deny"` - `reason_code: string` The judgement's grounds in registry-bo… Send Events Claude Developer Platform · in the page api/beta/sessions/events/send …rivileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt. At most one… Stream Events Claude Developer Platform · in the page api/beta/sessions/events/stream …n high-risk; it does not execute and a synthetic error tool result is appended. - `type: "deny"` - `reason_code: string` The judgement's grounds in registry-bo… Threads Claude Developer Platform · in the page api/beta/sessions/threads …n high-risk; it does not execute and a synthetic error tool result is appended. - `type: "deny"` - `reason_code: string` The judgement's grounds in registry-bo… Events Claude Developer Platform · in the page api/beta/sessions/threads/events …n high-risk; it does not execute and a synthetic error tool result is appended. - `type: "deny"` - `reason_code: string` The judgement's grounds in registry-bo…
Feedback