get_chunk_count
Determine the total number of chunks returned for a read_context request. Use this tool to plan chunk requests by specifying file path, encoding, size limits, and file types.
Instructions
Get the total number of chunks that will be returned for a read_context request. Use this tool FIRST before reading content to determine how many chunks you need to request. The parameters should match what you'll use in read_context.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
encoding | No | File encoding (e.g., utf8, ascii, latin1) | utf8 |
fileTypes | No | File extension(s) to include WITHOUT dots (e.g. ["ts", "js", "py"] or just "ts"). Empty/undefined means all files. | |
maxSize | No | Maximum file size in bytes. Files larger than this will be chunked. | |
path | Yes | Path to file or directory | |
recursive | No | Whether to read directories recursively (includes subdirectories) |