git_remote_status
Compare local and remote branch status to see how many commits your branch is ahead or behind. Optionally refresh remote data first for accurate results.
Instructions
Read local-vs-remote branch state using structured Git commands. Set refresh=true to fetch the selected branch first so ahead/behind is based on current remote state.
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_remote_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Git repository directory; defaults to the workspace. | |
| branch | No | Branch; defaults to the current branch. | |
| remote | No | Remote name; defaults to origin. | |
| refresh | No | Fetch remote/branch before computing ahead/behind. |