bash-tool changedagents-and-tools/tool-use/bash-tool
Nearest release: v2.1.330, published under an hour 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+14added
Lines−14removed
From line
252
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits20to this page, all time
The whole hunk
from line 252, old and new numbered
/
from line 252
252252
253253A bash tool definition has two required fields, `type` and `name`, and the `name` must be `bash`. The tool is schema-less: you don’t provide an `input_schema`, because the schema is built into Claude’s model and can’t be modified. The following table lists the input fields Claude sets when it calls the tool.
254254
255| Parameter | Required | Description |
256| --------- | -------- | ----------------------------------------- |
257| `command` | Yes\* | The bash command to run |
258| `restart` | No | Set to `true` to restart the bash session |
255| Parameter | Required | Description |
256| ----- | ----- | ----- |
257| `command` | Yes\* | The bash command to run |
258| `restart` | No | Set to `true` to restart the bash session |
259259
260260\*Required unless using `restart`
261261
from line 1941
19411941
19421942The bash tool definition adds the following input tokens to your request. This is in addition to the per-model [tool use system prompt](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview#pricing) that applies whenever any tool is present.
19431943
1944| Model | Additional input tokens |
1945| ----------------------------------------------------- | ----------------------- |
1946| Claude 4.7 and later models and Claude Mythos Preview | 325 tokens |
1947| Claude 4.6 and earlier models | 244 tokens |
1944| Model | Additional input tokens |
1945| ----- | ----- |
1946| Claude 4.7 and later models and Claude Mythos Preview | 325 tokens |
1947| Claude 4.6 and earlier models | 244 tokens |
19481948
19491949Additional tokens are consumed by:
19501950
from line 2014
20142014
20152015* Availability: Available
20162016
2017| Status | Cloud platforms |
2018| --------- | ----------------------- |
2017| Status | Cloud platforms |
2018| ----- | ----- |
20192019| Available | All supported platforms |
20202020
20212021### Data handling
from line 2022
20222022
20232023[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
20242024
2025| Item | Zero data retention | HIPAA |
2026| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
2027| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
2028| Details | Client-side tool run in your environment. | — |
2025| Item | Zero data retention | HIPAA |
2026| ----- | ----- | ----- |
2027| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
2028| Details | Client-side tool run in your environment. | — |
20292029
20302030Applicable endpoints:
20312031
No line in this hunk matches that.