# The Grid Square: Diagram element for AI agents

> The cabin's grid square is outlined, then lifted and magnified beside the sheet, with "you are here" handwritten.

Canonical page: https://agentframes.ai/elements/contour/grid-square/
Markdown: https://agentframes.ai/elements/contour/grid-square.md

## Overview

- Name: The Grid Square (`gridSquare`), an element: one HyperFrames block per size
- Part of: the [Contour](https://agentframes.ai/packs/contour.md) pack (23 of 50). Available only through the All-access subscription.
- Category: Diagram
- Purpose: The cabin's grid square is outlined, then lifted and magnified beside the sheet, with "you are here" handwritten.
- Pack: [Contour](https://agentframes.ai/packs/contour.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 Explorer (map buff, woodland green, route pink) (`explorer`), Coast (sand, sea blue, red route) (`coast`), Winter (snow white, slate contours, orange route) (`winter`); avoid none
- Typical duration: 4.5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/contour/grid-square.mp4
- Poster: https://agentframes.ai/media/contour/grid-square.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Contour pack. Add a `gridSquare` beat to plan.json on a `explorer` canvas with slot `note` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `note` | string | note | {"type":"string","minLength":0,"maxLength":18} | you are here |

## What your agent can change

**The Grid Square**. Native 1920×1080, 4.5s at 30fps.

The cabin's grid square is outlined, then lifted and magnified beside the sheet, with "you are here" handwritten.

**Motion.** The square outlines; the magnifier grows from 40% on a dotted leader; the pin drops inside; the note inks in.
**Why it moves.** attention: zooming into the square you will stay in.

### Mount

Copy every manifest file into your project (plus `af-contour-runtime`). Mount with a unique host id, `data-composition-id="af-contour-grid-square-16x9"`,
`data-composition-src="compositions/af-contour-grid-square-16x9.html"`, `data-duration="4.5"` 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).

- `note`: {"type":"string","minLength":0,"maxLength":18}

- The map is one fictional landscape (no real places, OS marks or sheet numbers), cropped per size.
- Text is typeset exactly as written and never shrunk: a slot that does not fit stops the block with a message.

Style: `colourway` (explorer, coast, winter), `brandColour` and `accent` (optional hex), `agency`, `footer`, `exit` (lift or cut).

### Timing

4.5s. Everything has landed by 2.7s (60%), then the scene holds still for reading and the graphics lift away over the last 0.4 s, leaving the photo or your footage.

### Example

```json
{
  "note": "you are here"
}
```

## FAQ

### What can my AI agent change in The Grid Square?

Your agent fills the `note` slot 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 Contour look.

### Which aspect ratios does The Grid Square support?

The Grid Square is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 4.5s.

### How do I get The Grid Square?

The Grid Square is included in the Contour 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 Contour

- [Survey Plan (floor plan)](https://agentframes.ai/elements/contour/survey-plan.md): The floor plan on a survey sheet, drawn from the room rectangles (metres): walls draw in ink, names and areas (m²) fade in, the highlight room hatches in the route colour and a pin drops into it; a north arrow and a 5 m scale bar; numbered handwritten notes.
- [What's Near (area map)](https://agentframes.ai/elements/contour/whats-near.md): Place and neighbourhood on the walking map: the cabin pin drops, then for each nearby place the pink route walks out along its footpath at walking pace, its map marker pops (the lake, the pub PH, the fell-walk summit) and its legend chip lands in the list.
- [The Walk Card](https://agentframes.ai/elements/contour/walk-card.md): The route walks from the door up the fell, and a card sets the walk's name and its distance, climb and time.
- [Drive Rings](https://agentframes.ai/elements/contour/drive-rings.md): Rings of travel time spread from the cabin like contours, each labelled with a minutes plate and a town.

## Community

Coming soon.
