list_directory
Retrieve a structured listing of files and directories in a specified path, identifying each with [FILE] or [DIR] markers. Essential for analyzing directory contents and locating specific files within the Filesystem MCP Server.
Instructions
Get a detailed listing of all files and directories in a specified path. Results clearly distinguish between files and directories with [FILE] and [DIR] prefixes. This tool is essential for understanding directory structure and finding specific files within a directory. Only works within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
path | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}