Resolve a pinned commit
resolve_commitConvert a 7-40 character commit prefix into the full 40-digit commit id required by other tools. Use it to pin a commit before querying code.
Instructions
Resolve a commit id or unique prefix (7-40 lowercase hex digits) to the full id of a pinned commit; branch and tag names are not accepted. Other tools require this full 40-digit id.
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": {
"commit": "<commit>"
},
"name": "resolve_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | Yes | Commit id or unique prefix, 7-40 lowercase hex digits. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| tool | No | ||
| error | No | ||
| notes | No | ||
| commit | No | ||
| outcome | No | ||
| warnings | No | ||
| truncated | No | ||
| next_cursor | No | ||
| schema_version | No | ||
| index_generation | No |