tenki_git
Execute supported git operations (clone, checkout, diff, log) inside a disposable Tenki sandbox. For other git commands, use tenki_exec with git -C to specify the working directory.
Instructions
Run a git operation in a sandbox. Only clone, checkout, diff, and log are supported by the API — for any other git command (status, add, commit, push, ...) use tenki_exec with git .... clone arg keys: repo (required, the URL), branch?, depth?, directory?. CAVEAT (live-verified): checkout/diff/log run in the session's working directory (/home/tenki), which is not a repository and has no directory arg — so on a repo cloned into a subdirectory they fail with 'not a git repository'. Use tenki_exec with git -C <directory> ... instead (e.g. git -C /home/tenki/hw log -n 2). For reference, their arg keys are — checkout: ref (required), create? ('true' = -b); diff: range? or base?+head?, path?; log: max_count?, range?, path?.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Operation args as a key→value object (values are sent as strings; numbers/booleans are coerced). clone: {repo, branch?, depth?, directory?}; checkout: {ref, create?: 'true'}; diff: {range?} or {base?, head?}, {path?}; log: {max_count?, range?, path?}. | |
| operation | Yes | One of: clone, checkout, diff, log (the API rejects anything else). | |
| session_id | Yes | Sandbox session id (UUID), from tenki_create_sandbox or tenki_list_sandboxes. |