Git
gitFor reading use git_read, which is read-only and needs no approval: "status", "log", "diff", "remote_show" here are deprecated (still works). The project's git repository in /workspace (the code; /data and the database are not in git). action "status", "log" (recent commits), "diff" (uncommitted changes; paths to limit), "commit" (message; stages everything unless paths are given; authored as the user with you as co-author; a commit containing a secret is refused with the file and line). Remote: "remote_set" (github: "owner/name" for a GitHub repository the user connected in the portal (Project › Code), nothing to add; or url, an SSH address such as git@gitlab.com:you/app.git, which returns a deploy key to add to the repository with write access; rotate_key: true for a new key), "remote_show", "remote_remove", "push" (the current branch; history is scanned for secrets first; force: true overwrites the remote branch), "pull" (fetches the current branch; a snapshot is taken first; strategy "ff-only" by default or "merge"). An imported project keeps the original repository as remote "imported-from": pull with remote "imported-from" merges its updates (a snapshot first; conflicts are listed and nothing changes).
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": {
"project": "<project>",
"action": "<action>"
},
"name": "git"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | remote_set: the repository's SSH address. | |
| force | No | push: replace the remote branch (with lease). | |
| paths | No | ||
| action | Yes | ||
| github | No | remote_set: owner/name of a GitHub repository, through the LazyFrog GitHub App. | |
| remote | No | pull: "imported-from" takes the updates of the repository it was imported from. | |
| message | No | ||
| project | Yes | Project slug or id. | |
| strategy | No | ||
| rotate_key | No | ||
| idempotency_key | No | Any unique string; repeating a call with the same key does not repeat its effect. |