list_workspace_files
Discover readable workspace files and folders before reading or editing, including optional glob and subdirectory filters; results stay confined to allowed read paths.
Instructions
List files the server is allowed to read.
Use this to discover what is available before reading or editing. Results are confined to the read allowlist (the workspace folder plus any additional read-only folders). Paths returned here can be passed directly to the other tools.
Returns a dictionary with:
files: list of {path, size_bytes} (absolute paths, sorted)
total: number of files returned
truncated: true if more files exist than were returned (capped)
read_dirs: the read folders that were searched
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | Optional glob filter on file names, e.g. '*.pdf' or '*.docx'. Default: all files. | |
| recursive | No | Recurse into subdirectories. Default: true. | |
| subdirectory | No | Optional workspace-relative subdirectory to list. If omitted, all read folders are listed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||