opencode_file_list
List files and directories within a project to browse its structure, allowing AI agents to inspect codebases and locate relevant files for coding tasks.
Instructions
List files and directories at a path
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to list (defaults to project root) | |
| directory | No | Absolute path to the project directory. When provided, the request targets that project. If omitted, the OpenCode server uses its own working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |