list_files_in_dir
List all files and directories within a specified folder in your Obsidian vault to aid in navigation and content management.
Instructions
Lists all files and directories in a specific directory within your Obsidian vault.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dirpath": "<dirpath>"
},
"name": "list_files_in_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirpath | Yes | Path to the directory (relative to vault root). Empty directories are not returned. | |
| vaultId | No | Optional vault ID (defaults to configured default vault). |