Chrome extension docs Tokens and AI
Prompt Chains
Pro
A chain runs several prompts in sequence, feeding each step the previous step's output. One hotkey, several passes.
Fix grammar
↓
Rewrite concisely
↓
Friendly tone
Correct, tight, and warm. One keystroke.
Seeded chains
| Chain | Abbreviation | Steps |
|---|---|---|
| Polish | bcpolish |
Fix grammar → Rewrite concisely → Friendly tone |
| Translate & bullet | ctransbullets |
Translate to English → Convert to bullet list |
| Explain then summarize | cexplain |
Explain code → Summarize in 3 bullets |
Building one
Create a snippet, set its type to Chain, then add steps. Each step points at another snippet. Two tokens matter inside a chain:
| Token | Means |
|---|---|
{{prev}} |
This step's input: the previous step's output, or the text you started with on step one. |
{{selection}} |
The same as {{prev}} inside a chain. |
{{initial}} |
The text the chain started with, unchanged on every step. Use it when a later step needs the original, for example to check a rewrite against it. |
Selection prompts drop into chains without editing: inside a chain, {{selection}} is the previous step's output, so a prompt written for standalone use reads correctly as a step. A step that checks a rewrite can use both: Original: {{initial}} and Rewrite: {{prev}}.
Running one
There are two ways, and which one fits depends on what the chain starts from (the Input setting in its editor).
- On selected text: select the text on the page, open the Spotlight and pick the chain. The result replaces the selection. This works in editors that sit inside a frame too, as many site editors do.
- By its abbreviation: a chain whose input is Clipboard or Nothing runs where you type its abbreviation, and the result lands at the cursor. A chain that works on selected text can't run this way, because typing replaces the selection; it tells you so and leaves what you typed.
While a chain runs you get step-by-step progress.
Every step is a model call. A three-step chain takes roughly three times as long as one prompt, and on a metered provider costs three times as much. A generous free tier makes chains cheap to run.
Documentation for TypeFire for Chrome. Updated 2026-11-17.