ls
List directory contents inside a workspace using a given path, with an optional limit to control the number of entries returned.
Instructions
List directory contents using Pi.
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": {
"workspace_id": "<workspace_id>"
},
"name": "ls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path or path relative to the workspace. Home is a starting directory, not a sandbox. | |
| limit | No | ||
| workspace_id | Yes |