Tree
redctx_treeDisplay a directory hierarchy as an indented tree with redacted names and @p_ IDs for a quick structural overview without exposing sensitive filenames.
Instructions
Show the directory hierarchy under path as an indented tree, one line per entry: @p_<id> <redacted name>, with / after directories. Use it for a quick structural overview; use redctx_list when you need entry types, sizes and full redacted paths, and redctx_search or redctx_retrieve to find content. Policy-excluded, protected (config, term files, .env*, keys) and symlinked entries are omitted. Carry the @p_<id> references into other tools instead of raw names; on a large root, lower max_depth or start from a subdirectory to stay under the traversal limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory to show: a root-relative path or an `@p_<id>` reference. Default `.` (the root). Paths outside the root are refused; a file shows just its own entry. | . |
| max_depth | No | Levels below `path` to show; 0 shows only `path` itself. Default 3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The tool output, identical to the text content block and already redacted: sensitive values appear as deterministic `[CATEGORY_<hex>]` placeholders (forms declared as aliases of one entity share its hex and add a form suffix, `[CATEGORY_<hex>.<form>]`) and files as `@p_<id>` references. When the result has `isError: true`, this is a fixed error message instead, such as a limit error or the notice that context access is blocked until the operator repairs the local redaction config. | |
| receipt | Yes | Redaction statistics for this call only; never contains original values. |