Format a MIF issue body with format_mif_issue_body
Goal: prepend the MIF L1 frontmatter comment block to a Markdown body
yourself, without creating an issue — useful when composing a body ahead of
time or feeding it to a tool other than create_issue (which does this
prepending automatically).
Prerequisites
Section titled “Prerequisites”- None — this is a pure string-transformation function; it makes no GitHub API call.
-
Call
format_mif_issue_body:{"meta": { "id": "flaky-upload-retry", "type": "Bug", "namespace": "your-repo" },"body": "Uploads intermittently fail on slow connections."} -
Read the result — a single string:
<!-- mif-id: urn:mif:concept:your-repo:flaky-upload-retry --><!-- mif-type: Bug --><!-- mif-ns: your-repo -->Uploads intermittently fail on slow connections.
Verify it worked
Section titled “Verify it worked”- Confirm the three comment lines appear before your original body,
unmodified, with
idexpanded into the fullurn:mif:concept:{namespace}:{id}form. - Feed the result back through
parse_mif_issue_bodyand confirm you get the originalmetaandbodyback.
See also: tool reference.