perseus_include
Include and render a source file with recursive directive resolution. Bound growing logs with last=N or filter recent sections with since. Use mode=reference for a one-line pointer.
Instructions
Include and render another Perseus source file, recursively resolving its directives. Use to compose context from multiple files or share common sections across workspaces. Bound a growing file with last=N (final N lines) or since=14d/2w/24h (recent dated sections only). Use mode=reference (or render.host_loaded_paths) to emit a one-line pointer instead of inlining files the host agent already loads natively. Read-only; resolved directives inherit the parent configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | Keep only the final N lines of the file (bounds a growing log) | |
| mode | No | Value for mode parameter | |
| path | Yes | File path to include and render (relative to workspace root) | |
| since | No | Keep only dated sections within a window, e.g. 14d, 2w, 24h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Included file path | |
| rendered | No | Rendered included file content |