ls
List a directory on a remote machine, showing name, size, mode, and modification time. Use it to inspect files in a fleet workspace, with optional glob patterns to exclude entries.
Instructions
List a directory on the remote machine: name, size, mode and modification time.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory to list: absolute, or relative to the workspace directory. Default: the workspace directory. | |
| fleet | No | Fleet name. Omit to use the default. | |
| ignore | No | Glob patterns to leave out. | |
| context | No | Context name. Omit to use the default. | |
| workspace | No | Workspace id. Omit to use this session's workspace on the fleet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| mime | No | ||
| note | No | ||
| path | No | ||
| size | No | ||
| count | No | ||
| lines | No | ||
| where | Yes | ||
| sha256 | No | ||
| content | No | ||
| entries | No | ||
| new_file | No | ||
| warnings | No | ||
| truncated | No | ||
| workspace | Yes | ||
| next_offset | No | ||
| total_lines | No | ||
| omitted_bytes | No | ||
| written_bytes | No |