Skip to content

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

@richardanaya

Description

@richardanaya

Feature hasn't been suggested before.

  • 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"
'''

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions