MCP tools reference
What each OnboardingYak MCP tool reads or changes, and how to use tools safely.
Read tools#
| Tool | What it returns |
|---|---|
list_templates | The studio's complete flows and single-screen templates, plus guidance on what makes them work. |
get_template | A template's screens as JSON ready for save_draft, with an image of the rendered phone screens. |
get_sprite_guide | How 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_apps | Your apps, platform, live version, and screen count. |
get_flow | The live onboarding or a specified published version. |
get_draft | The current editor draft and its revision. |
list_versions | Published versions with starts, finishes, and finish rate. |
get_analytics | 30-day starts, completions, rate, screen funnel, and experiment data. |
get_tracking_status | For apps that track their own onboarding: which screen tags are reporting, and which don't match the mockup. |
get_code_spec | A 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#
| Tool | Effect | Safety behavior |
|---|---|---|
validate_flow | Checks a proposed flow. | Read-only; does not save or publish. |
save_draft | Updates the editor draft. | Not live. Supports baseRevision conflict protection. |
create_asset_upload | Returns a signed upload URL and public asset URL. | Upload URL expires after two hours; uploaded content is publicly readable. |
publish_flow | Publishes the next live version. | Changes what SDK clients receive. |
rollback_flow | Republishes 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.