git_remote
Run git commands on a remote server via SSH with shortcuts for common operations such as pull, status, log, branch, and diff.
Instructions
Run git commands on a remote server via SSH. Shortcut for common git operations (pull, status, log, branch, diff) on remote repositories. Provide the connection alias and repo path.
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": {
"connection": "<connection>",
"repo_path": "<repo_path>",
"operation": "<operation>"
},
"name": "git_remote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional git arguments (e.g. '--oneline -10' for log, branch name for checkout) | |
| operation | Yes | Git operation to perform | |
| repo_path | Yes | Path to git repo on remote server (e.g. /opt/odoo/odoo-19.0) | |
| connection | Yes | Connection alias (uses its SSH config) | |
| forward_agent | No | Forward SSH agent for GitHub auth (auto-enabled for pull/fetch/clone) | |
| custom_command | No | Full git command (only when operation=custom) |