perseus_read
Read file contents and embed them into context. Extract specific keys from structured files or validate against JSON schemas.
Instructions
Read and embed file contents into the rendered context. Use to inject config values, environment files, or any text file. Can extract specific keys from structured files. Read-only; use perseus_list or perseus_tree to browse before reading.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | If reading a config file, extract this key only | |
| path | Yes | File path to read (relative to workspace root) | |
| schema | No | JSON Schema to validate file contents against | |
| fallback | No | Value to use when the file or key is not found |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path read | |
| content | No | File contents | |
| truncated | No | Whether content was truncated |