gitStash
Temporarily stash modified and untracked files to get a clean working directory, allowing branch switches without losing progress.
Instructions
Stash current changes to get a clean working tree. Required before switching branches with uncommitted changes. Use gitStashPop to restore. Pass includeUntracked: true to also stash new files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gitStash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Optional description for the stash entry | |
| includeUntracked | No | Also stash untracked (new) files. Default: false. |