opencode_message_list
List all messages in an OpenCode session with formatted roles and content, optionally limiting results and targeting a project directory.
Instructions
List all messages in a session with formatted roles and content.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>"
},
"name": "opencode_message_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages to return | |
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| sessionId | Yes |