get_file_summary
Generate a lightweight, indexing-free file overview showing size, imports, top-level definitions, and a preview to help AI assistants understand files without reading them fully.
Instructions
Returns a lightweight summary of a file: size, imports, top-level definitions,
and the first N lines. Does NOT require indexing.
Args:
path: File path relative to project root.
max_lines: Max lines of content to include (default 50).
Returns:
File metadata, structure, and preview.
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": {
"path": "<path>"
},
"name": "get_file_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |