worker_read_file
Read files a spawned worker is authorized to access inside its workdir, using relative or bounded absolute paths, with optional offset and limit for partial content.
Instructions
Read a file the worker is authorized to access (bounded by its workdir, NOT BRIDGE_WORK_ROOT). For spawned worker sessions only. Worker passes file_path relative to its workdir, or absolute within workdir parent tree.
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": {
"file_path": "<file_path>",
"workdir": "<workdir>"
},
"name": "worker_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| workdir | Yes | worker 的授权 workdir(主控传入 args.workdir) | |
| file_path | Yes | 相对 worker workdir 的路径,或 workdir 父树内的绝对路径 |