List Directory
list_dirInspect a remote directory's contents with sorted entries showing file type, size, and modification time. Use it to browse files on a server before reading or editing.
Instructions
List directory entries sorted by name: name, type (d dir, l symlink, f file), size in bytes, mtime in Unix seconds. Max 2000 per call; truncated=true if more.
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_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory; "~" expands to home; default: working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | No | ||
| count | No | ||
| error | No | ||
| items | No | ||
| has_more | No | ||
| truncated | No |