git_add
Stage specified files or all changes for the next commit. Use patterns to include multiple files at once.
Instructions
Add file contents to the staging area.
USAGE: Call this tool to stage files for commit. Use "." to add all changes, or specify specific files.
Examples: {} - Add all changes (equivalent to "git add .") {"files": ["src/main.js", "src/utils.js"]} - Add specific files {"files": ["*.js"]} - Add files matching pattern (use shell expansion)
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": "git_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files to add (default: ["."] for all files) |