OnboardingYakDocumentation
DocsAI and MCP
AI AND MCP

MCP tools reference

What each OnboardingYak MCP tool reads or changes, and how to use tools safely.

Read tools#

ToolWhat it returns
list_templatesThe studio's complete flows and single-screen templates, plus guidance on what makes them work.
get_templateA template's screens as JSON ready for save_draft, with an image of the rendered phone screens.
get_sprite_guideHow to make a sprite sheet for an animated mascot: the rules, frame design, a script to build it, and how to use it on a screen.
list_appsYour apps, platform, live version, and screen count.
get_flowThe live onboarding or a specified published version.
get_draftThe current editor draft and its revision.
list_versionsPublished versions with starts, finishes, and finish rate.
get_analytics30-day starts, completions, rate, screen funnel, and experiment data.
get_tracking_statusFor apps that track their own onboarding: which screen tags are reporting, and which don't match the mockup.
get_code_specA studio design to build as native screens in your own code: the screens, every image to download, and the steps your agent follows.

Validation and write tools#

ToolEffectSafety behavior
validate_flowChecks a proposed flow.Read-only; does not save or publish.
save_draftUpdates the editor draft.Not live. Supports baseRevision conflict protection.
create_asset_uploadReturns a signed upload URL and public asset URL.Upload URL expires after two hours; uploaded content is publicly readable.
publish_flowPublishes the next live version.Changes what SDK clients receive.
rollback_flowRepublishes an earlier version as a new latest version.Does not modify the current editor draft.

Flow format expectations#

When editing a flow, read the current draft first and preserve screen IDs so analytics continue to line up. Keep required fields on each screen: id, kind, title, subtitle, button, and accent. Subtitle can be an empty string.

For an interactive canvas, set kind: "Question", answerType: "positionPicker", and provide positionPicker.positions with stable IDs, labels, and X/Y percentages. Optional canvas fields are background, height (120–600), cornerRadius (0–40), hotspotShape (circle, rounded, or chip), and hotspotSize (small, medium, or large). Use a raster image URL for the background; SVG and video backgrounds are rejected. The full field guide is in Interactive canvas documentation.

Use HTTPS URLs for externally hosted media. For local files, call create_asset_upload; do not put data URLs into a screen. Video still requires the host app to supply renderVideo.

User approval and publishing#

The agent connection has broad account access. Review proposed draft changes in Studio before publishing. Agents should use save_draft for review and call publish_flow only when you explicitly ask them to publish. A saved draft is not live.