read_text_file
Retrieve the content of a text file from the local filesystem, with configurable limits on bytes read to prevent large file overload.
Instructions
读取一个本地文本文件的内容。
Args: path: 文件的绝对路径或相对于 server 启动目录的相对路径。 max_bytes: 最多读取的字节数,防止把超大文件喂给 LLM,默认 64KB。
Returns: 文件文本内容(UTF-8 解码,非法字节会被替换)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |