list_documents
List files in a directory within an allowed root, with optional glob filter for filenames. Returns file names, sizes, and modification times for further processing.
Instructions
List files in a directory inside the allowed root.
Args: directory: Directory path, relative to the allowed root (use '.' for the root itself) or absolute but inside it. glob_pattern: Filename filter, e.g. '.pdf' or '**/.csv' for recursive matching. Defaults to '*'. Must be relative and must not contain '..'; matching never leaves the allowed root.
Returns a list of {path, name, size_bytes, modified} entries; 'path' is relative to the allowed root and is what other tools accept.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | ||
| glob_pattern | No | * |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |