核对 Git 远端状态
git_get_remote_stateRead local and remote branch HEADs to calculate ahead/behind status, making no changes to the repository or remote.
Instructions
Read the exact local HEAD and remote branch head and calculate ahead/behind state without modifying the repository or remote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch name. Default: current branch. | |
| remote | No | Remote name. Default: origin. | |
| workspace_id | No | Optional workspace id. When omitted, CodexPro binds the authoritative conversation workspace automatically; an explicit unknown or mismatched id is rejected. | |
| conversation_id | No | Connector conversation id bound to this workspace. Modern MCP injects it automatically; side-effecting tools require it to match the authoritative binding. | |
| workspace_generation | No | Optional authoritative workspace generation. When omitted, CodexPro injects the conversation-bound generation; an explicit stale generation is rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_result | Yes |