fs_list
List a folder on the machine: name, kind (file, dir, symlink), size and change time of each entry, sorted by name. Hidden names only with hidden=true. Paths holding keys and credentials (~/.ssh, ~/.aws, cmdop’s own folder and the like) are refused.
Arguments
Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.
| Name | Type | Required | Meaning |
|---|---|---|---|
hidden | boolean | no | Include names starting with a dot. Default: false. |
limit | integer | no | At most this many entries (default 500, at most 5000), sorted by name. |
path | string | yes | Folder on the machine. Absolute, or relative to the user’s home folder; ~ is the home. |
Result
| Name | Type | Required | Meaning |
|---|---|---|---|
entries | object[] | yes | |
path | string | yes | The folder, resolved to an absolute path. |
truncated | boolean | yes | More entries exist than were returned. |
Examples
MCP
{
"name": "fs_list",
"arguments": {
"machine": "<machine>",
"path": "<path>"
}
}Limits
The call times out after 15 s (timed_out). Available since version 0.0.1. A refused or failed call returns one of the error codes.