List Remote Directory
fs_listList the contents of a remote directory via an active SSH session, with optional pagination to control the number of items returned.
Instructions
Lists directory contents
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": {
"sessionId": "<sessionId>",
"path": "<path>"
},
"name": "fs_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination | |
| path | Yes | Directory path to list | |
| limit | No | Maximum items per page (default: 100) | |
| sessionId | Yes | SSH session ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | ||
| nextToken | No |