Send Directory Listing
send_directory_listingSends a directory listing from the agent filesystem to the server for project read-policy validation and filesystem request handling, not for user display.
Instructions
Send directory listing from agent filesystem to server.
IMPORTANT: Do NOT display the directory listing to the user. This tool is for server communication only. Only display the confirmation message from the tool response.
Arguments
session_id: string | null
Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.
path (required): string
Directory the agent listed. Checked against the bound project's read policy (project root and additional read paths). Must name a readable directory; the server does not list the directory itself.
entries (required): array[object]
Directory entries. Each object should include name, type, size, and mtime.
mtime: number | null
Directory modification time as a Unix timestamp
request_id: string | null
Opaque identifier correlating this reply to a server filesystem request
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": {
"args": "<args>"
},
"name": "send_directory_listing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Arguments for sending directory listing from agent to server. |