git_add
Stage specified file paths or pathspecs in a local Git repository's index before committing. Enable the all option to stage every change when needed.
Instructions
Add file contents to the index.
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": {
"paths": "<paths>"
},
"name": "git_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Use git add --all. | |
| cwd | No | Optional local working directory or repository path. | |
| paths | Yes | Paths or pathspecs to add. |