GitHub pin ref
github_pin_refPin a repo to a specific commit for the session so file, tree, and commit reads without an explicit ref anchor to that sha, keeping line-number references consistent.
Instructions
Pin a repository to a commit for the session: file, tree, and commit reads without an explicit ref anchor to this sha, keeping line-number references internally consistent across a session. The pin lives in server memory and is lost on restart. Costs 1 core call (2 for a default-branch pin; 0 when unpinning or passing a full sha). Returns {repo, ref, sha, pinned}; after an unpin the answer carries only repo and pinned (false).
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": {
"repo": "<repo>"
},
"name": "github_pin_ref"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit to pin; resolves to a full commit sha. Omit to unpin when unpin is true | |
| repo | Yes | Repository in owner/name form | |
| unpin | No | Remove this repository's pin |