git_pull
Pull commits from a remote Git repository. Updates the local branch with remote changes, requiring clean working directory.
Instructions
Pull commits from remote. Uses GITHUB_TOKEN from env if available.
Fails if there are uncommitted changes (commit or stash first).
Returns: {branch, remote, sha_before, sha_after, commits_pulled, files_changed, up_to_date}
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_pull"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote | No | origin | |
| branch | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||