get_chunk_count
Determine the total number of chunks for a file read request on the MCP File Context Server. Use with matching parameters to plan efficient content retrieval and avoid unnecessary requests.
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) |