read_file
Read UTF-8 text files from a Filaxis target layer without changing remote state; returns path, content, size, and mtime for safe inspection before edits.
Instructions
只读获取目标层中的 UTF-8 文本文件(不修改远端状态),返回 { path, content, size, mtime_ms }。文件不存在、无权限或层不支持元数据时报错;下载二进制文件请改用 get_file,同时读多个文件优先使用 run_batch,后续受控修改请配合 edit_file。
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 | 目标层内的文件路径(绝对路径或相对层工作目录) | |
| layer | No | 目标层名(缺省=默认层) |