Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

files changedbuild-with-claude/files

Nearest release: v2.1.304, published under an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+4added
Lines−11removed
From line 42 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits24to this page, all time

The whole hunk

from line 42, old and new numbered
/
lines
from line 42
4242 
4343<CodeGroup>
4444 ```bash cURL
45 FILE_ID=$(curl -X POST https://api.anthropic.com/v1/files \
45 curl -X POST https://api.anthropic.com/v1/files \
4646 -H "x-api-key: $ANTHROPIC_API_KEY" \
4747 -H "anthropic-version: 2023-06-01" \
48 -F "file=@/path/to/document.pdf" | jq -r '.id')
49 echo "$FILE_ID"
48 -F "file=@/path/to/document.pdf"
5049 ```
5150 
5251 ```bash CLI
53 FILE_ID=$(ant files upload \
54 --file /path/to/document.pdf \
55 --transform id \
56 --raw-output)
57 echo "$FILE_ID"
52 ant files upload --file /path/to/document.pdf
5853 ```
5954 
6055 ```python Python
from line 466
471466 # The "@./path" reference inlines the file contents directly into the field.
472467 ant messages create \
473468 --model claude-opus-5-5 \
474 --max-tokens 1024 \
475 --transform 'content.#(type=="text").text' \
476 --raw-output <<'YAML'
469 --max-tokens 1024 <<'YAML'
477470 messages:
478471 - role: user
479472 content:
Feedback