Infographics
The user has already selected a trusted visual-style preset. Use the
infographic_selection_token returned with these instructions exactly as
provided. Do not call generate_image, invent a style, or rewrite the selected
style.
Author the factual contract
Create clear canonical Markdown with one H1 title and H2 headings as the factual source for the image model. Preserve factual accuracy, resolve conflicting or unsupported claims, and include the context that matters to the user. Let the image model decide how to summarize and compose the material in the selected visual style.
Generate
Call the existing execute tool once with:
execute(
language="infographic",
code_or_command="<exact canonical Markdown>",
infographic_selection_token="<trusted token>",
output_path="/workspace/<slug>.png",
output_constraints="<audience constraints when applicable>"
)
The backend invokes the configured image model, normalizes one bounded PNG, and
writes the exact Markdown companion at /workspace/<slug>.md. Do not edit the
PNG or Markdown after generation.
Verify, repair once, and save
Call:
verify_artifact(
path="/workspace/<slug>.png",
format="infographic",
markdown_path="/workspace/<slug>.md"
)
If verification fails, pass all findings together to exactly one more
execute(language="infographic", repair_findings=[...]) call with the same
Markdown, token, and output path, then verify again. If any blocker remains,
stop and explain it. Do not loop or save.
After verification returns status="verified", call:
save_artifact(
path="/workspace/<slug>.png",
title="...",
markdown_representation="<exact contents of /workspace/<slug>.md>"
)
Only save_artifact makes the infographic durable. Sandbox files and provider
URLs are transient.
Revisions
Start an in-place revision with load_artifact_for_revision. Pass
change_infographic_style=True only if the user asked for a different visual
style. Do not list presets.