List the contents of a directory in an agent’s workspace.
| Field | Type | Description |
|---|---|---|
path | string | Absolute path of the listed directory |
entries | array | List of directory entries |
entries[].name | string | Name of the file or directory |
entries[].type | string | Entry type (file or directory) |
entries[].size | number | Size in bytes (files only) |
entries[].modified_at | string | Last modified timestamp (ISO 8601) |
| Code | Description |
|---|---|
200 | Directory contents returned successfully |
401 | Invalid authentication |
403 | Access denied |
404 | Agent or directory not found |