git_stash
Temporarily shelve changes in a working directory so you can switch branches or apply them later. Supports naming stashes and including untracked or staged-only changes.
Instructions
Stash the changes in a dirty working directory (git stash).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"directory": "<directory>"
},
"name": "git_stash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | The directory to run git stash in | |
| include_untracked | No | When true, include untracked files in the stash. | |
| name | No | Optional name for the stash (used as the stash message) | |
| staged_only | No | When true, stash only the currently staged changes and leave unstaged work untouched. |