LARK Grammar support for app-server dynamic tools

Open 💬 0 comments Opened May 27, 2026 by Mike-Dax

What variant of Codex are you using?

CLI / app-server

What feature would you like to see?

LARK Grammar support for app-server dynamic tools.

I have several free-form tools, matching how apply_patch is designed, enforcing things like LSP requests, symphony-style work-pad updates, LLM-based granular code-reviews / lints.

I would like to enforce grammar correctness with these tools via a LARK grammar, matching how the apply_patch tool works.

I understand MCP tooling is tied to the MCP specification, which does not support this, but perhaps app-server dynamic tools can be more flexible? As an extension to this, ideally there would be a path for LARK grammar support in "plugins"? (Even more ideally, the MCP specification would support these freeform grammars!)

Additional information

I'm currently maintaining a codex fork, which is burdensome compared to first-party support for LARK grammar structured decoding for external tooling.

View original on GitHub ↗