midnight-get-file-at-version
Retrieve the exact content of a file at a specific version or branch to ensure code recommendations align with the user's current version.
Instructions
Get the exact content of a file at a specific version. CRITICAL: Use this to ensure code recommendations match the user's version. Always prefer this over get-file when version accuracy matters.
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>",
"path": "<path>",
"version": "<version>"
},
"name": "midnight-get-file-at-version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name (e.g., 'compact', 'midnight-js') | |
| path | Yes | File path within repository | |
| version | Yes | Version tag (e.g., 'v1.0.0') or branch (e.g., 'main') |