get_file_preview
Preview a file’s contents up to a set character limit and check whether truncation occurred before reading further.
Instructions
Return a limited preview of file contents and whether content was truncated.
Args:
path: Relative or absolute path to the file.
max_chars: Maximum characters to return (default 500).
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_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |