list_folder_tool
List non-hidden files and folders within an Obsidian vault directory, with options for recursive tree views and depth limits.
Instructions
List the contents of a vault folder (non-hidden items only). path='': root of the vault. recursive=False (default): immediate contents only — data: {folders, files}. recursive=True: full tree dump in one call — data: {tree: {folders: {name: tree}, files: [...]}}. max_depth limits how many levels deep to descend (None = unlimited).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_folder_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| vault | No | ||
| max_depth | No | ||
| recursive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||