git_add
Precisely stage selected files in a Git repository by specifying their repo-relative paths. Adds only the listed files, avoiding arbitrary Git options and ensuring safe, controlled staging.
Instructions
Stage an explicit list of repository-relative files. Arbitrary Git options are not accepted.
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 | ||
| repo_path | No | Workspace-relative repository path; defaults to . |