use_pattern

Finds a best-practice flow in Universe and returns it as the guideline to draw from: its rules, the states to cover, and each screen's outline and reference image.

What it does

Call it before you draw a common flow, such as sending money, signing in, checking out, settings, an empty state or a pricing page. Without flow it lists the flows in Universe or searches them. With flow it returns that flow to follow.

Arguments

flow
Optional. A flow's slug from the list, for example finance-send-money. Leave it out to list or search.
screen
Optional, with flow. One screen's number, to read only that screen.
query
Optional, without flow. Words every result must match, such as a job: "send money", "empty state".
category
Optional, without flow. finance, account, commerce, social, platform, marketing, misc, ai, crm, business, professional, travel, maps, medical, music, entertainment, sports or news.

What it returns

Plain text. A list gives one line per flow: its slug, name, number of screens and when to use it. A flow gives its note (use when, avoid when, pairs with, the patterns and why they work, the states to cover), a short how-to, then every screen at 390 and 1440 with a link to its reference image, the token roles it uses and an outline: containers by name, texts in quotes, and the token role of each filled box, such as [primary].

Listing and searching are free. Reading a flow is part of Pro; on Free the call returns a tool error that says so.

Example

Find it
use_pattern { "query": "send money" }
Reply (abbreviated)
Universe: 125 best-practice flows in 18 categories, …finance · Finance (brand Poket, fictional e-wallet)- finance-send-money: Send money · 5 screens · use when P2P, bank transfer, payout, …
Read one screen
use_pattern { "flow": "finance-send-money", "screen": 2 }
Reply (abbreviated)
UNIVERSE PATTERN finance-send-money (Finance · Send money)FLOW: SEND MONEY (P2P and bank transfer)  ·  PoketUSE WHEN: …HOW TO USE IT- Treat this as the guideline for the flow …2 Amount  mobile 390x844: https://…/universe/finance/fin-send-2-390.webp  token roles: hairline, ink, line, muted, on-primary, paper, primary, surface    nav      "Amount"    "Rp" "250.000"    foot      btn [primary]        "Review transfer"

Start a flow, or find one from a frame

Two more tools work with Universe through run_tool. find_flows takes a frame id from your file and lists the flows that talk about the same things as it (free). add_flow starts a flow in your file: one empty frame per screen, at 390, 1440 or both, named after them (Pro). Frames the file already has from that flow are left alone, so adding it again changes nothing.

Find the flows for a frame
run_tool { "name": "find_flows", "args": { "frame": "Ab12Cd" } }
Start a flow
run_tool { "name": "add_flow", "args": { "flow": "finance-send-money", "widths": "mobile" } }

Notes

  • The reference brands are made up. Draw with your own tokens: where the outline says [primary], use the token that plays the primary role in your file (see get_tokens).
  • Read the flows named in PAIRS WITH for the screens around it, such as verification before a transfer or the error state after it.
  • Then draw it with write_page or apply_ops, under the file's guidelines.

Was this page helpful?

Edited Nov 9, 2026