peek_file
View file summaries to check public interfaces without opening files, reducing context costs by displaying cached API structures or full contents as needed.
Instructions
Get a summary of a file's public interface without changing the active file. Useful for checking APIs of files you've already worked on.
Returns:
For the active file: full contents
For previously read files: cached summary (public structs, functions, traits, etc.)
For unsupported file types: full contents
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to peek at |