# Search Results: Label & callout element for AI agents

> A search: the query types into the box, results rise, one result lifts off the page and its snippet is underlined.

Canonical page: https://agentframes.ai/elements/receipts/search-results/
Markdown: https://agentframes.ai/elements/receipts/search-results.md

## Overview

- Name: Search Results (`searchResults`), an element: one HyperFrames block per size
- Part of: the [Receipts](https://agentframes.ai/packs/receipts.md) pack (18 of 50). Available only through the All-access subscription.
- Category: Label & callout
- Purpose: A search: the query types into the box, results rise, one result lifts off the page and its snippet is underlined.
- Pack: [Receipts](https://agentframes.ai/packs/receipts.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Ember (graphite desk, red-orange pen) (`ember`), Ink (midnight desk, blue pen) (`ink`), Marker (warm stone desk, yellow highlighter) (`marker`); avoid none
- Typical duration: 12s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/receipts/search-results.mp4
- Poster: https://agentframes.ai/media/receipts/search-results.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Receipts pack. Add a `searchResults` beat to plan.json on a `ember` canvas with slots `query`, `results`, `pick`, `url`, `date`, `cues` and `pace` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `query` | string | query | {"type":"string","minLength":1,"maxLength":50} | four day week trial results |
| `results` | string | results | JSON string. {"type":"array","minItems":2,"maxItems":4,"items":{"type":"object","properties":{"site":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":80},"snippet":{"type":"string","minLength":1,"maxLength":200}},"required":["site","title","snippet"]}} | [{"site":"northline.example › work","title":"Nine in ten firms keep the four-day week","snippet":"After six months, [[most companies chose to keep the shorter week]], with revenue broadly unchanged."},{"site":"ledgerline.example › analysis","title":"The four-day week, six months on","snippet":"Revenue held steady across the group, the analysis found."},{"site":"workday.example › podcast","title":"Episode 41: \"We stopped the fake work\"","snippet":"A founder on what changed when Fridays went."}] |
| `pick` | number | pick | {"type":"integer","minimum":0,"maximum":3} | 0 |
| `url` | string | url | {"type":"string","minLength":0,"maxLength":70} | search.example |
| `date` | string | date | {"type":"string","minLength":0,"maxLength":24} |  |
| `cues` | string | cues | start time (s, from the scene start) of each [[quote]], in order; empty = spaced automatically. JSON string. {"type":"array","items":{"type":"number","minimum":0,"maximum":40},"maxItems":8} | [] |
| `pace` | number | pace | spoken words per second (default 2.4). {"type":"number","minimum":1,"maximum":6} | 2.4 |

## What your agent can change

**Search Results**. Native 1920×1080, 12s at 30fps.

A search: the query types into the box, results rise, one result lifts off the page and its snippet is underlined.

**Motion.** Characters appear one by one (0.05 s); results rise 0.12 s apart; the picked result lifts with a shadow while the others dim; the pen draws in its snippet.
**Why it moves.** change: from "I searched it" to "here is what came up".

### Mount

Copy every manifest file into your project (plus `af-receipts-runtime`). Mount with a unique host id, `data-composition-id="af-receipts-search-results-16x9"`,
`data-composition-src="compositions/af-receipts-search-results-16x9.html"`, `data-duration` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the layout before anything
draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

- `query` (required): {"type":"string","minLength":1,"maxLength":50}
- `results` (required): {"type":"array","minItems":2,"maxItems":4,"items":{"type":"object","properties":{"site":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":80},"snippet":{"type":"string","minLength":1,"maxLength":200}},"required":["site","title","snippet"]}}
- `pick`: {"type":"integer","minimum":0,"maximum":3}
- `url`: {"type":"string","minLength":0,"maxLength":70}
- `date`: {"type":"string","minLength":0,"maxLength":24}
- `cues`: start time (s, from the scene start) of each [[quote]], in order; empty = spaced automatically. {"type":"array","items":{"type":"number","minimum":0,"maximum":40},"maxItems":8}
- `pace`: spoken words per second (default 2.4). {"type":"number","minimum":1,"maximum":6}

- Wrap each quoted run of words in `[[ ]]`; set `cues` from the transcript (when each quote starts) and `pace` (words per second).

Style: `colourway` (ember, ink, marker), `accent` (optional pen hex), `mark` (underline or highlight), `page` (paper, cream, night), `exit` (drop or cut), `duration` (seconds).

### Syncing to the narration

Give `cues` the second (from the scene start) at which the speaker starts each quote, and `pace` their speaking rate in
words per second; each quoted word then draws its stroke in its own 1/pace slot, so the line keeps time with the voice. Raise
`duration` (and the mount's `data-duration`) to fit long narration: every reveal must land by 60% of the scene, which leaves the rest
as a still, readable hold.

### Timing

12s by default. The window rises in the first 0.7 s, the reveals land by 60%, the lamp glow keeps breathing during the hold (text stays still), and with `exit: drop` the window sinks off the desk over the last 0.45 s.

### Example

```json
{
  "query": "four day week trial results",
  "results": "[{\"site\":\"northline.example › work\",\"title\":\"Nine in ten firms keep the four-day week\",\"snippet\":\"After six months, [[most companies chose to keep the shorter week]], with revenue broadly unchanged.\"},{\"site\":\"ledgerline.example › analysis\",\"title\":\"The four-day week, six months on\",\"snippet\":\"Revenue held steady across the group, the analysis found.\"},{\"site\":\"workday.example › podcast\",\"title\":\"Episode 41: \\\"We stopped the fake work\\\"\",\"snippet\":\"A founder on what changed when Fridays went.\"}]",
  "pick": 0,
  "url": "search.example",
  "date": "",
  "cues": "[]",
  "pace": 2.4
}
```

## FAQ

### What can my AI agent change in Search Results?

Your agent fills the `query`, `results`, `pick`, `url`, `date`, `cues` and `pace` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Receipts look.

### Which aspect ratios does Search Results support?

Search Results is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 12s.

### How do I get Search Results?

Search Results is included in the Receipts pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Receipts

- [Article Quote](https://agentframes.ai/elements/receipts/article-quote.md): Signature device. The source passage, typeset in a browser window from the article's own words, with the pen drawing under each quoted run of words as the speaker reads it. The page follows the voice: if a quote is lower down, the page scrolls it up to the reading line.
- [Page Scroll](https://agentframes.ai/elements/receipts/page-scroll.md): A long page with two to four quotes far apart: the page scrolls from one to the next as each is read, a scroll thumb tracks the position, and every underline stays, so the receipts visibly come from one source.
- [Clip in a Window](https://agentframes.ai/elements/receipts/clip-window.md): A video source plays inside the window: the host mounts the clip under this frame in the screen rect (see TEMPLATE.md). A broadcast bug, a lower third and a playhead sit on the screen, and the line the speaker repeats is set under it and underlined.
- [Screenshot Quote](https://agentframes.ai/elements/receipts/screenshot-quote.md): A real page screenshot (your own image) in the window; the pen draws on word boxes you give in percent of the image, timed to the speech. Without an image a calm placeholder page shows where the boxes land.

## Community

Coming soon.
