opencode_session_init
Analyze an app and create AGENTS.md to prepare an OpenCode session via opencode-http-mcp, using provider/model IDs; runs 30-60s+.
Instructions
Analyze the app and create AGENTS.md for a session. Long-running (30-60s+).
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": {
"id": "<id>",
"messageID": "<messageID>",
"providerID": "<providerID>",
"modelID": "<modelID>"
},
"name": "opencode_session_init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| modelID | Yes | ||
| variant | No | ||
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| messageID | Yes | ||
| providerID | Yes |