listDirectoryTool
List files and folders in a directory under AgentFiles by supplying a relative directory path.
Instructions
Lists files and folders in a directory under 'AgentFiles'.
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": "listDirectoryTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirPath | Yes | The directory path to list, relative to the 'AgentFiles' directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | A newline-delimited list of entries or an error message. |