Deepen a Polygraph session repository's git history.
Session repos are cloned shallow (a single commit), so git operations that need older history fail with errors like "bad object", "fatal: ... shallow" or a missing commit — for example reverting an older commit, or running git log, git blame, or git merge-base beyond the newest commit. Call this tool to fetch the missing history, then retry the git operation. By default it fetches the full history of the repo's default branch (plus the current branch when it exists on the remote); pass depth to bound the fetch, or refs to add extra branches. Safe to call redundantly — a repository that already has complete history reports success without doing any work. Requires an active Polygraph session.
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
sessionId | string | yes | The Polygraph session ID, or a supported Polygraph app session URL. Supported URL paths are /s/<session-id> and /orgs/<org-id>/sessions/<session-id>. URL inputs are normalized to the session ID; the MCP always uses the current Polygraph API configuration. |
repo | string | yes | Repo name or ID whose session clone should be deepened |
depth | number | no | Fetch only the newest N commits instead of full history |
refs | array | no | Additional remote branch names to fetch |