code-execution-tool changedagents-and-tools/tool-use/code-execution-tool
Nearest release: v2.1.301, published 5 hours before 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+8added
Lines−12removed
From line
558
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits23to this page, all time
The whole hunk
from line 558, old and new numbered
/
from line 558
558558
559559When Claude saves files to its output directory during code execution (see [How generated files are captured](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#how-generated-files-are-captured)), each file's ID appears in the code execution tool result, and you can download it with the [Files API](https://platform.claude.com/docs/en/build-with-claude/files):
560560
561<CodeGroup>
562 ```bash cURL
563 # Downloading every generated file means looping over the file IDs in the tool
564 # result, which doesn't translate to a one-off shell command. Use one of the
565 # SDK examples instead.
566 ```
561<CodeGroup exclude="shell">
562 <CodeGroupItem language="cURL">
563 Downloading every generated file takes a loop over the file IDs in the tool result, which needs more logic than a single shell command. Use the [Claude SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) for this.
564 </CodeGroupItem>
567565
568 ```bash CLI
569 # Extracting every file ID from the tool results and downloading each one
570 # requires a loop, which doesn't translate well to a one-off CLI command.
571 # Use one of the SDK examples instead.
572 ```
566 <CodeGroupItem language="CLI">
567 Downloading every generated file takes a loop over the file IDs in the tool result, which needs more logic than a single shell command. Use the [Claude SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) for this.
568 </CodeGroupItem>
573569
574570 ```python Python
575571 client = Anthropic()
No line in this hunk matches that.