Feature hasn't been suggested before.
Describe the enhancement you want to request
I would love to use opencode for some existing workflows we have which currently depend on the Claude Code SDK's structured output feature which allows generating JSON (generateObject-style) from an extant session:
https://platform.claude.com/docs/en/agent-sdk/structured-outputs
Any change this would be possible to add to OpenCode?