Skip to main content
Glama

multiread

Read multiple files simultaneously to minimize API calls, with automatic encoding detection and support for reading specific line ranges across all files.

Instructions

Reads multiple files in a single call to reduce API round-trips. Encoding-aware: auto-detects file encoding for each file. Supports offset/limit for reading specific line ranges (applied to all files). If a file fails, the error is included in output and remaining files continue. Maximum 50 files per request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathsYesList of absolute file paths to read,required
offsetNoLine number to start reading from (1-based). Negative = from end (e.g. -5 = last 5 lines). Default: 1
limitNoMaximum number of lines to read per file. Default: 0 (all)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/knewstimek/agent-tool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server