List directory
lsLists a directory on a peer, defaulting to the home folder, and returns JSON entries with each item's name, kind, size, and modification time.
Instructions
List a directory on the peer (default: home) as JSON entries: name, kind (file / dir), size, mtime.
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": {
"peer": "<peer>"
},
"name": "ls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| peer | Yes | The peer's 9-digit rockd ID (from `devices` / `status`), or IP:port to dial directly |