midnight-get-file
Retrieve a specific file from Midnight repositories using repository aliases and optional version references. Specify file sections with start and end lines.
Instructions
Retrieve a specific file from Midnight repositories. Use repository aliases like 'compact', 'midnight-js', 'counter', or 'bboard' for convenience.
USAGE GUIDANCE: • Use midnight-list-examples first if you're unsure which file to get • For searching across files, use midnight-search-* tools instead • Use 'ref' parameter to get specific versions (branch, tag, or commit) • Use startLine/endLine to request specific sections of large files • Files >50KB are truncated (first 25KB + last 25KB preserved)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name (e.g., 'compact', 'midnight-js', 'example-counter') | |
| path | Yes | File path within repository | |
| ref | No | Branch, tag, or commit SHA (default: main) | |
| startLine | No | Start line number (1-based, inclusive). Use to request specific sections. | |
| endLine | No | End line number (1-based, inclusive). Use with startLine for a range. |