Skip to Content

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.

NameTypeRequiredMeaning
hiddenbooleannoInclude names starting with a dot. Default: false.
limitintegernoAt most this many entries (default 500, at most 5000), sorted by name.
pathstringyesFolder on the machine. Absolute, or relative to the user’s home folder; ~ is the home.

Result

NameTypeRequiredMeaning
entriesobject[]yes
pathstringyesThe folder, resolved to an absolute path.
truncatedbooleanyesMore entries exist than were returned.

Examples

{ "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.