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

structured-outputs changedbuild-with-claude/structured-outputs

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+23added
Lines−25removed
From line 124 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits21to this page, all time

The whole hunk

from line 124, old and new numbered
/
lines
from line 124
124124 
125125 <Tab title="CLI">
126126 ```bash
127 ant messages create \
128 --transform 'content.#(type=="text").text|@fromstr' \
129 --format jsonl <<'YAML'
127 ant messages create <<'YAML'
130128 model: claude-opus-5-5
131129 max_tokens: 1024
132130 messages:
from line 148
150148 YAML
151149 ```
152150 
153 To print only some properties of the JSON output, pass a [GJSON path](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#transform-output-with-gjson) to `--transform`.
151 Claude returns JSON like this in the response's text content block:
154152 
155 The example above outputs:
156 
157 ```text Output wrap
158 {"name":"John Smith","email":"[email protected]","plan_interest":"Enterprise","demo_requested":true}
153 ```json Output
154 {
155 "name": "John Smith",
156 "email": "[email protected]",
157 "plan_interest": "Enterprise",
158 "demo_requested": true
159 }
159160 ```
160161 </Tab>
161162 
from line 803
802803 
803804 <Tab title="CLI">
804805 ```bash
805 ant messages create \
806 --transform 'content.#(type=="text").text|@fromstr' \
807 --format jsonl <<'YAML'
806 ant messages create <<'YAML'
808807 model: claude-opus-5-5
809808 max_tokens: 1024
810809 messages:
from line 827
828827 YAML
829828 ```
830829 
831 The example above outputs:
830 Claude returns JSON like this in the response's text content block:
832831 
833 ```text Output wrap
834 {"name":"John Smith","email":"[email protected]","plan_interest":"Enterprise","demo_requested":true}
832 ```json Output
833 {
834 "name": "John Smith",
835 "email": "[email protected]",
836 "plan_interest": "Enterprise",
837 "demo_requested": true
838 }
835839 ```
836840 </Tab>
837841 
from line 1241
12371241 ```
12381242 
12391243 ```bash CLI
1240 ant messages create \
1241 --transform 'content.#(type=="text").text|@fromstr' \
1242 --format jsonl <<'YAML'
1244 ant messages create <<'YAML'
12431245 model: claude-opus-5-5
12441246 max_tokens: 4096
12451247 messages:
from line 1569
15671569 ```
15681570 
15691571 ```bash CLI
1570 ant messages create \
1571 --transform 'content.#(type=="text").text|@fromstr' \
1572 --format jsonl <<'YAML'
1572 ant messages create <<'YAML'
15731573 model: claude-opus-5-5
15741574 max_tokens: 1024
15751575 messages:
from line 1857
18571857 ```
18581858 
18591859 ```bash CLI
1860 ant messages create \
1861 --transform 'content.#(type=="text").text' \
1862 --raw-output <<'YAML'
1860 ant messages create <<'YAML'
18631861 model: claude-opus-5-5
18641862 max_tokens: 1024
18651863 output_config:
Feedback