读项目文件内容
piweb_read_fileRead a portion of a text file, returning one chunk by default; continue with offset=nextOffset. Only text files are accepted; binary files are rejected.
Instructions
读一个文本文件的片段(服务端按块返回,默认一块;用 offset=nextOffset 继续读下一块)。只读文本类文件,二进制会被拒。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 文件的绝对路径 | |
| offset | No | 从第几个字节开始读,默认 0 | |
| max_chars | No | 返回内容截断长度,默认 20000 | |
| session_id | No | 会话 id:用于放行「被该会话引用过」的目录之外的文件 |