Skip to main content

appgrammar_decompile_submit

Axiom: I — Compression | Category: Creation

Multi-turn operation

This tool uses a multi-turn protocol. The initial call returns a prompt and token. Run the prompt on your LLM, then submit the structured output via appgrammar_tool_submit (or the tool-specific submit variant) to advance the operation.

Submit the result of a decompilation step. After calling appgrammar_decompile, you receive a prompt to run on your LLM. Submit the LLM's structured output here.

Works identically to appgrammar_create_submit — the server validates against the same schemas and routes to decompiler-specific prompts automatically based on the session mode.

Returns one of:

  • Next step: { step, system_message, prompt, schema, token } — run this prompt next
  • Validation error: { error, details, retry_token, retries_remaining } — fix and resubmit
  • Complete: { status: "ready", steps, estimated_tokens_saved, price, preview } — appgrammar is ready, use appgrammar_start

Parameters

ParameterTypeRequiredDescription
appgrammar_idstring (UUID)YesThe appgrammar ID returned by appgrammar_decompile.
tokenstring (UUID)YesSingle-use token from the previous step response.
resultobjectYesThe structured JSON output from running the prompt on your LLM.

Example

{
"method": "tools/call",
"params": {
"name": "appgrammar_decompile_submit",
"arguments": {
"appgrammar_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"token": "11111111-2222-3333-4444-555555555555",
"result": {
"...": "structured LLM output"
}
}
}
}