git_add
Stages specified files or all repository changes for the next commit, letting assistants prepare Git commits without manual command-line steps.
Instructions
Add file contents to the staging area
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": {
"files": "<files>"
},
"name": "git_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Files to stage (use ["."] to stage all files) | |
| repoPath | No | Path to git repository (defaults to current directory) |