Run tool calls from code with Code Mode changedcode-mode
Nearest release: v2.1.333, published 6 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 1 Dec 2026 01:23 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 1 Dec 2026 01:37 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line
276
where the diff opens
First seen
13 Nov 2026
this site's first read of the page
Recorded edits19to this page, all time
The whole hunk
from line 276, old and new numbered
/
from line 276
276276
277277* **Change the text**: redact `result`, `stdout`, `stderr`, and `error`. Handle a `result` that's missing or `null`, and expect `error` only when the code failed or was stopped
278278* **Keep the shape**: return `code`, `stdout`, and `stderr` as strings, and return `error` as a string or leave it out. If you break this shape, Claude gets the original output
279* **Remove images, PDFs, and page errors**: if the copy has `images`, `documents`, or `imagePagesFailed` to hide, set that field to `[]`. The `imagePagesFailed` field lists the file path and error for each PDF page that couldn't be shown
279* **Remove images, PDFs, and page errors**: to hide `images`, `documents`, or `imagePagesFailed`, set that field to `[]` and return the copy each time the hook runs. The `imagePagesFailed` field lists the file path and error for each PDF page that couldn't be shown
280280* **Remove the path to long output**: on v2.1.331 or later, omit `uncutOutputNote` from the copy. The field gives Claude a path to the uncut text
281281
282282To hide the deploy token in the `notes.txt` result, print this JSON:
No line in this hunk matches that.