opencode_message_list
Retrieve a formatted list of messages from a session, showing each role and content. Specify a session ID and optional limit to review conversation history.
Instructions
List all messages in a session with formatted output showing roles and content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of messages to return | |
| 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. | |
| sessionId | Yes | Session ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| text | Yes | ||
| isError | Yes |