list_directory
List directory contents with pagination to prevent overload. Specify path, recursion, and limits to retrieve files efficiently within an Obsidian vault using a local REST API.
Instructions
List directory contents with pagination to prevent context overflow. Shows immediate contents by default.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | Maximum items to return | |
offset | No | Pagination offset | |
path | No | Directory path to list | . |
recursive | No | Include subdirectories recursively |
Input Schema (JSON Schema)
{
"properties": {
"limit": {
"default": 50,
"description": "Maximum items to return",
"type": "number"
},
"offset": {
"default": 0,
"description": "Pagination offset",
"type": "number"
},
"path": {
"default": ".",
"description": "Directory path to list",
"type": "string"
},
"recursive": {
"default": false,
"description": "Include subdirectories recursively",
"type": "boolean"
}
},
"type": "object"
}