Skip to main content
Glama

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
NameRequiredDescriptionDefault
pathYesPath to the file to peek at

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/UBTCodeNinja/mcp-file-compaction'

If you have feedback or need assistance with the MCP directory API, please join our Discord server