opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: support JSON schema as a constrain of opencode run command

Open richardanaya opened this issue 16 hours ago • 1 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Support for new --json on opencode run command similar to llama.cpp cli

''' opencode run -m opencode/grok-code --json '{"type":"object","properties":{"colors":{"type":"array","items":{"type":"string"}}},"required":["colors"]}' "make 3 colors" '''

richardanaya avatar Jan 19 '26 00:01 richardanaya