glance
Preview the beginning of a file or text to see the first few thousand characters and line count, enabling quick assessment of long content without loading everything.
Instructions
Provides a quick look at the beginning of a file or a string, showing the first few thousands
characters and total line count.
Exactly one of context_path or context_text must be provided. Do NOT provide both.
Args:
context_path (str): The path to the file to glance at.
context_text (str): The text content to glance at.
Returns:
A string containing a snippet of the file/text and metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_path | No | ||
| context_text | No |