ssh_git_pull
SSH into a remote host to perform git pull in a specified repository directory. Authenticate using private key (PEM string or file) or password.
Instructions
SSH into a remote host and run git pull in the specified repository directory. Supports authentication via private key (PEM string or file path) or password.
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": {
"host": "<host>",
"username": "<username>",
"repoPath": "<repoPath>"
},
"name": "ssh_git_pull"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Remote hostname or IP address | |
| port | No | SSH port (default 22) | |
| branch | No | Branch to pull (default: current tracking branch) | |
| password | No | SSH password (if not using a key) | |
| repoPath | Yes | Absolute path to the git repository on the remote host | |
| username | Yes | SSH username | |
| passphrase | No | Passphrase for the private key | |
| privateKey | No | PEM-encoded private key content | |
| privateKeyPath | No | Path to private key file (e.g. ~/.ssh/id_rsa) |