apply_template_ops | Apply a batch of operations in order and persist — all or nothing: if any op fails nothing is written and the error names the op. Add, move and restyle nodes, add scenes, set keyframes. addNode { ref: "card" } lets later ops in the batch use "$card"; addNode also nests children: [...], so a tree can be built and animated in one call. dryRun: true checks without writing. Returns per-op results, refs → node ids and a layer summary (snapshot: "full" for every prop). See the creative-authoring guide for the operation vocabulary. |
cancel_social_postdestructive | Stop a scheduled post before it goes out: its pending deliveries are dropped and the post removed. Anything already published stays live (bannx cannot unpublish) and the post is kept as history marked cancelled. OPT-IN: refused unless the API key lists this tool in its tool scopes, and the key owner must be an owner, admin or editor. |
create_brand | Create a brand with its token groups. Put render-ready values in liveTokens (also copied into draftTokens, which is what renders). See the brand-tokens guide for the group names templates expect. |
create_collection | Create a content collection, or update one by collectionId. `fields` adds entry fields; existing fields are never changed or removed. |
create_content | Create an entry in a collection, or update one by contentId. `data` holds field values keyed by apiName. publish: true publishes instead of saving a draft. |
create_shader | Create and sandbox-vet a WGSL shader; rejection saves nothing and returns errors to fix. Write fn mainImage(uv: vec2f) -> vec4f; uv starts top-left. Use bare u_time, u_resolution and input names; numeric inputs need min/max. Colors: array<vec4f, maxItems> plus <name>Count (maxItems 2-8). Images: type texture with a default URL; sample with textureSample(name, nameSampler, uv); nameSize gives pixel dimensions. Place via apply_template_ops addNode { type: "shader", props: { shaderId } }. |
create_social_post | Post text and optional media (a render_template `url` in `mediaUrls`, or `fileIds` from upload_media / render_template; several files = one multi-image post, in order) to connected accounts. Set exactly one of `scheduledAt` (future ISO datetime) or `publishNow: true`; prefer scheduling and confirm with the user first. OPT-IN: the key must list this tool and its owner be owner/admin/editor. If the space requires approval for API keys, status is "pending_approval" until a person approves it in bannx (agents cannot); unapproved by its time it expires, so tell the user. |
create_template | Make a new creative template (a still or an animation) at the given size, optionally seeding its first scene with operations (all or nothing: a failing seed op creates no template). Returns the templateId and a snapshot of the document with node ids. Read the creative-authoring guide first. |
delete_templatedestructive | Permanently delete a whole template: its record, document and published snapshot (the public page and API stop serving it). Cannot be undone. Pass confirmName = the template's current name (from list_templates / get_template); a mismatch deletes nothing. Needs a key whose owner may delete templates in the space. To remove layers or scenes inside a template, use delete_template_nodes instead. |
delete_template_nodesdestructive | Remove nodes (layers) and/or whole scenes inside one template and persist; the template itself stays. The state before is usually saved as a version first, so restore_template_version can bring it back (call save_template_version first when you must be sure). A scene's frame cannot be deleted while it is the scene frame — promote another with setMainFrame first. To delete the whole template, use delete_template. |
get_brandread-only | A brand with all its token groups (draftTokens, liveTokens, tokens) and campaign variants. Read it before update_brand — token groups are replaced whole, so merge first. |
get_guideread-only | Long-form reference for one topic. Read creative-authoring before your first create_template or apply_template_ops; brand-tokens before touching brands. The same text is available as prompts. |
get_public_templateread-only | The compact layer tree of a PUBLIC gallery template (any space) from its published version — same snapshot shape as get_template_document. Use it as a design reference: borrow structure, proportions, type scale and motion timing; never copy its copy or imagery. Not for templates in this space — use get_template_document. |
get_shaderread-only | One shader's author source and input manifest, for editing. The compiled program is not returned. |
get_templateread-only | A template's summary plus what you can vary when rendering it: its variables (name, type, default — the keys render_template takes as `variables`), its saved variations (ids for `variation`) and sample value sets, plus `motion` — whether it is animated (video export) and its duration in seconds — `pageView` (single, or carousel: the template page shows a still template's scenes side by side) and the sizes it renders at. Metadata only: it returns no layers or node ids — for the layer tree you edit, use get_template_document. |
get_template_documentread-only | The template's document as a compact snapshot: artboard, scenes, and each scene's node tree with ids. Read it before apply_template_ops — node ids are opaque and only valid when they came from a snapshot. If someone is editing live, you see their current state. For the variables, variations and samples a render takes, use get_template; for a public gallery template, get_public_template. |
list_brandsread-only | Brands in this space: id, name, and whether live or draft tokens exist. Find a brandId here before get_brand or update_brand. |
list_collectionsread-only | Content collections (entry types) in this space and their fields. A collection is where entries live; you need its id for list_contents and create_content. |
list_contentsread-only | Entries in one collection, paginated. Entry `data` is keyed by the collection's field apiNames. |
list_icon_collectionsread-only | The Iconify icon sets available (prefix, name, size, samples). Phosphor (ph) is the house default. To find an icon by keyword use search_icons; for the names inside one set, list_icons. |
list_iconsread-only | Icon names within one set (by prefix, e.g. ph), paginated, with an optional search within the set. |
list_public_templatesread-only | Published templates anyone can start from — and the gallery as a mood board. `search` takes a plain-words brief and ranks semantically over name, description and each template's design digest (format, palette, fonts, layout traits); filter by category ("featured" for the curated set), page through. Rows carry the summary shape of list_templates plus designDigest / designDigestText. Open one with get_public_template to read its layer tree. |
list_shader_presetsread-only | The built-in shaders — backgrounds (grid, mesh gradient, dot matrix, film grain) and the text-effect pack (tags ["text"]: outlined, sticker, long shadow, 3D extruded, chrome, neon, inset, glitch, reveal, marching ants; each draws a `text` input you can bind to a variable) — with full WGSL source and inputs. Read one of a similar kind before writing your own: they show the required conventions and already pass vetting. |
list_shadersread-only | The space's shaders: id, name, status, declared inputs, cost. Find a shaderId here before placing one with apply_template_ops or editing it. Never invent a shader id. |
list_social_accountsread-only | The social media accounts connected to this space (X, LinkedIn, Mastodon, Bluesky, …): accountId, platform, label, handle, health status and media limits (media.maxCount: how many images one post takes — X 4, LinkedIn 9, most others 10). Call it first: create_social_post needs accountIds from here. Credentials are never returned. |
list_social_postsread-only | Posts in this space, newest first, with each channel's delivery status (queued, publishing, published, failed), its live URL once published, any error, and a `warning` when a published delivery did not go out in full. Filter by `status` (e.g. scheduled to see what is queued, pending_approval for posts waiting for a person to approve, changes_requested for ones sent back with a note); `limit` up to 50. A post under approval carries `approval: { state, note? }`. |
list_templatesread-only | Templates in this space, newest first. Each row has the templateId, name, size, fps and whether it has a document to render. Search matches name and description. |
list_template_versionsread-only | The template's version history, newest first: versionId, reason (auto, publish, manual, before-api, pre-restore, restore, wipe-guard, before-guest), label, createdOn, author, extra (node and scene counts, source), and isCurrent when a version matches the template as it is now. Versions are saved automatically while people edit, on publish and right before an API or MCP edit; named ones are kept. Metadata only — restore one with restore_template_version. |
prepare_mockup | Turn a product photo (media-library fileId or imageUrl) into a ready mockup: segments the printable surface, places the print quad for the surface type and stores the mask and wrinkle maps. Returns warpNode (patch for addNode type "warp") and mockup (set baseId to the photo layer). area / areas[] add print areas on one photo; scene relights or re-stages the photo first (returns baseUrl). Costs credits (segment, depth, image-edit for a scene), reported as creditsCharged; nothing is charged if a step fails. See MOCKUPS in the creative-authoring guide. |
publish_template | Platform admins only: list a template from this space in the public gallery with public: true (default), or remove it with public: false. Going public first publishes the current draft — same as the editor's Publish, so an MCP-built template can go live — unless snapshot: false, which lists the existing published version (refused if none). Assigns a slug from the name if missing. Returns publicOn, publishedAt, slug and the public URL. Anyone else gets a 403, nothing changes; call only when the user explicitly asks. |
render_template | Render a creative template to a file and return its URL. Stills: png, webp, svg, pdf. Video: mp4, webm, gif, or zip for a frame sequence. Pass `variables` for the template's variables, `variation` for a saved variation, `brand` (name, brandId or URL of a brand in your space) to render under another brand for this render only — the template keeps its own, nothing is written — and `brandVariant` to render under a campaign (e.g. ["xmas"]). The result says what it cost: `creditsCharged` and `balanceAfter`. Renders are logged and fire the render.completed webhook. |
resolve_brand | Turn a brand name, brandId or website URL into a brandId with render-ready tokens. With createFromUrl (the default) an unknown URL is fetched and a brand is created from it, so this can write. Set createFromUrl: false to only look up. |
restore_template_version | Put the template back to a version from list_template_versions: design, name, variables, size, frame rate and variations. The current state is saved as a "pre-restore" version first (the restore aborts if that fails), so a restore can itself be undone; everyone with the template open sees the restored design at once. What is published does not change — call publish_template to update the public page. Needs a key whose owner may edit templates in the space. |
save_template_version | Save the template as it is now as a version, with an optional label (a named version is never pruned; at most 100 named per template). Call it before a large or experimental apply_template_ops batch so the user can go back. Returns the new version's id and metadata. |
search_iconsread-only | Find icons by keyword. Returns names like ph:house — pass one to apply_template_ops as addNode { type: "svg", props: { icon: "ph:house" } } and it becomes an svg node. |
set_template_brand | Choose which brand {{ brand.* }} resolves against for one template — by name, brandId or website URL — or pass null to detach it so the template follows the space default. Renders and previews pick it up immediately. |
sign_template_urlsread-only | Mint keyless image URLs (`/r/:id?…&sig=…`) for a published template — one variable set, or up to 500 `rows` for per-recipient links in emails, CRM fields, OG tags or <img> on any site; `options.scene` picks one page of a still template, `pages: "all"` signs one URL per page for every row. Each distinct URL renders once (1 credit, on first open) and is served from cache after; republishing refreshes them. Still formats only (png, webp), scale ≤ 2. Signing itself is free. |
update_brand | Change a brand's name, tokens or campaign variants. Only the fields you pass change, but each token group you pass replaces the stored one entirely — get_brand, merge, then send the whole group. |
update_shader | Change a shader's source, inputs, name or description. A source or input change re-runs the full vetting; if rejected the stored shader is left exactly as it was. get_shader first so you edit the current source. |
upload_media | Put an image, video, audio file or PDF into the space's media library and get back a hosted URL to use as a node's `src`. Give a public `url` to copy from, or `dataBase64` for a local file; the filename's extension sets the type. Also returns the library `fileId`, which create_social_post takes as `fileIds`. |
whoamiread-only | The space and user this API key acts as, and the space's credit balance. Call it first to confirm you are in the right space. |