list_directory
List contents of a directory or retrieve file details on a remote agent. Specify an optional path to view files and folders.
Instructions
List contents of a directory or details of a file on the agent. Usage: ls [path] Arguments: path : STRING (optional, default '.') — Directory or file path to list. Example: ls C:\Users
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": {
"agent_id": "<agent_id>"
},
"name": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |