git_add
Use this tool to add specified files to the Git staging area by providing the repository path and file patterns. Simplify tracking changes in your project with GitMCP integration.
Instructions
Add files to Git 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": {
"path": "<path>"
},
"name": "git_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repository path | |
| patterns | No | File patterns to add |