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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| workdir | Yes | worker 的授权 workdir(主控传入 args.workdir) | |
| file_path | Yes | 相对 worker workdir 的路径,或 workdir 父树内的绝对路径 |