read_file
Retrieves course files, assignment submission details, and feedback from returned paths; supports ZIP/PDF page selection and paginated text output.
Instructions
读取 list_files/search_content 的课件路径或作业 read_path/附件 path;submission:活动ID 读提交详情和反馈。ZIP 用 inner(支持 PDF/Office),PDF 用 page_start/page_end,长内容用 offset/max_chars 分页。返回文本或文件清单。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 文件搜索或作业列表返回的路径;submission:活动ID 可直接读提交详情 | |
| inner | No | ZIP 内路径;省略=列 ZIP 清单 | |
| offset | No | 字符起点,默认0 | |
| page_end | No | PDF 结束页,默认同起始页 | |
| max_chars | No | 最大字符数,默认20000,最高100000 | |
| page_start | No | PDF 起始页,从1开始 |