Push current Git branch safely
git_pushPushes ONLY the currently checked-out Git branch to the same-name branch on a configured remote. No --force, deletes, tags or arbitrary refspecs. Specify the branch explicitly and, if available, expected_head as a 40/64-hex SHA to prevent a stale push. Reports Git push exit status separately from remote verification. A successful push may return remote_verification_status=UNVERIFIED or MISMATCH if post-push ls-remote fails or sees another SHA; never blindly retry because the remote may already have changed. push_applied=true means Git exited 0, while push_applied=null means the actual remote effect is uncertain. This mutates an external Git remote and may require normal Host approval. Select this tool from the user's intent when it is the best match. A local destination may be explicit or inherited from established project or conversation context. The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.
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>",
"branch": "<branch>"
},
"name": "git_push"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the authorized local Git repository. | |
| branch | Yes | Exact checked-out local branch. The remote branch must have the same name. | |
| remote | No | Configured Git remote name, e.g. origin, not a URL. | origin |
| device_id | No | Target computer device_id. Omit when only one computer is paired. | |
| device_name | No | Computer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer. | |
| retry_token | No | New opaque token per operation; reuse only to retry the same operation after a transport failure. No user content. | |
| workflow_id | No | Optional workflow id; pass together with ai_session_id. | |
| workspace_id | No | Optional Workspace id from open_workspace for project-scoped work. | |
| ai_session_id | No | Optional Session id. Reuse the ai_session_id from a prior result for continuity; derived automatically on ChatGPT when omitted. Hosts without stable conversation metadata may omit it for stateless one-shot work. | |
| expected_head | No | Optional full local commit SHA supplied by the caller as a stale-state guard. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||