Git Add
git_addStages specified files for commit in a Git repository, with options to target a repo path or use '.' to stage all changes.
Instructions
Stage file(s) for commit (git add).
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 | File(s) to stage (space-separated, or '.' for all). | . |
| repo_path | No | Path to the git repository. | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |