git_add_tool
Adds files to Git staging area using repository path and file list. Use '.' to stage all changes, preparing them for commit.
Instructions
Adds 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": {
"repo_path": "<repo_path>",
"files": "<files>"
},
"name": "git_add_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the Git repository | |
| files | Yes | List of files to stage. Use ['.'] to stage everything |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |