Generating
Change a Tooltip with AI
The editor's Edit with AI: changes what instruction asks (icy blue colours, add a lifesteal stat) and keeps the rest, then saves it before answering. 5 credits, flat, given back if it fails.
/packs/{pack}/tooltips/{tooltip}/editPath parameters
packstringrequiredThe pack's slug, as returned by the packs endpoints.
tooltipstringrequiredThe Tooltip's id from the list.
Body
instructionstringrequiredmax 300 charactersWhat to change.
Response · 200
Changed and saved.
packstringrequiredThe pack.
statusstringready, when it was designed or changed by AI.
tooltipobjectrequiredThe Tooltip, with spec and components.
idstringrequiredIts id in the pack.
namestringrequiredIts name.
itemstringrequiredThe vanilla item the give command hands out. The Tooltip itself shows on any item carrying its components.
widthintegerrequiredIts width in GUI pixels.
heightintegerrequiredIts height in GUI pixels.
blocksintegerrequiredHow many blocks it has.
updatedAtstringrequiredISO 8601.
giveCommandstringrequiredA /give for the item wearing it, once the pack is on the client (Minecraft 1.21.5+). Over 256 characters it has to run from the console or a command block.
componentsobjectThe same item components as JSON, for ItemsAdder, Nexo or any plugin that takes them. Absent from the listing.
specobjectThe design itself: width, padding, gap, frame, theme (colours), item, glint and blocks, top to bottom. Send it back changed to update_tooltip. Absent from the listing.
Error codes
Branch on error.code, never on the message.
invalid_request400Something in the body or query is wrong. message says what.
invalid_api_key401The key isn't one of ours, or it has been revoked.
missing_api_key401No Authorization: Bearer header was sent.
wrong_key_kind401An MCP key sent to the REST API, or an API key sent to the MCP server. Each only opens its own.
insufficient_credits402Not enough AI Credits to run this. Nothing was started or charged.
account_suspended403The account is suspended, so its keys open nothing. message says until when, if the suspension has an end date.
asset_limit_reached403The pack is at its asset limit.
forbidden403Valid key, but not permitted to do this in this pack.
plan_required403The key is valid, but its account's plan does not include the API.
not_found404No such pack, asset or job.