Limits
These limits apply when building for scape.wtf. Actions must also pass permission and state validation.
Gizmo projects
| Item | Limit / behavior |
|---|---|
| Project name | 1–80 UTF-16 units; must contain non-whitespace text |
| Project description | At most 1,000 UTF-16 units; at least 10 after trimming whitespace |
| Definitions per project | 16; unique types and emojis |
| Bundled upload | 1 MiB, including embedded models and audio |
| Instance state | 32 KiB of JSON |
| Action / configuration payload | 2 KiB of JSON |
| JSON nesting | Depth 16 |
| View fields / controls | 16 / 32 |
| Native layout rows | 32; 1–8 references per row; each element referenced at most once; equal or content sizing |
| Row IDs / accessible labels | Unique 1–64 alphanumeric, underscore or hyphen IDs; optional nonblank labels up to 240 characters |
| Select choices | 1–64 unique values |
| Select value / label | 128 / 240 characters |
| World text | 512 Unicode characters and 1,024 UTF-16 units |
| Optional world text range | Greater than 0, at most 32 cells |
| World navigation transition | 1–1,000 ms; scale/opacity 0.02–1; trail opacity 0–1 and six-digit hex color |
| Step / shared feedback duration | 1–2,000 ms |
| Sound bank | 16 sounds, 64 KiB of recipe data |
| World light radius | 0.25–12 cells |
| Area-removal maximum radius | Integer 0–3 cells, permission checked per candidate |
| Travel destination offset | Integer coordinates within ±64 cells |
| Travel exits | 1–9 offsets, each within one cell |
| Travel cooldown | 650–5,000 ms |
| Decorative spin | −4 to 4 radians per second |
Provide project name and description together. Both fields are required for shop submissions. See project metadata.
Exact effect shapes and source comments are in the SDK reference. Validators reject invalid fields and ranges. State updates and project activation remain atomic.
Haptic patterns
| Item | Limit / behavior |
|---|---|
| Presets | 'light' or 'heavy' |
| Custom events | 1–16 transient or continuous events |
| Event delay | Finite delayMs >= 0, strictly before the enclosing feedback ends |
| Intensity / sharpness | Finite numbers from 0 to 1 |
| Continuous duration | Finite durationMs >= 1; delay plus duration must not exceed the feedback duration |
| Overall duration | At most 2,000 ms, bounded by the enclosing feedback |
| Compatibility fallback | Optional 'light' or 'heavy'; no fallback means silence when custom playback is unavailable |
| Recipients | Initiating player for accepted actions; moving player for travel/navigation |
| Playback | Supported native iOS devices; new custom patterns replace the previous custom player |
| Lifecycle | Background/reset stops custom playback; old gestures never resume |
Transient events have no durationMs field. Unknown fields and invalid numeric values are rejected. See the pattern example and haptics API.
Native form fields
| Item | Limit / behavior |
|---|---|
| Field ID | 1–64 ASCII letters, digits, _ or -; unique within the view |
| Field label | At most 240 UTF-16 units |
| Text | Required integer maxLength from 1–4,096 UTF-16 units; optional multiline boolean |
| Select / Radio / Checklist options | 1–64 unique nonempty values; each value at most 128 and label at most 240 UTF-16 units |
| Date | Empty or valid Gregorian YYYY-MM-DD, years 0001–9999; optional inclusive date bounds |
| Time | Empty or HH:mm, 00:00–23:59; optional inclusive bounds with min <= max |
| Color | Lowercase #rrggbb; optional 1–32 unique palette suggestions in the same format |
| Number / Slider | Required finite min, max, step, each with magnitude at most Number.MAX_SAFE_INTEGER; min <= max, step > 0; value must be in range and step-aligned from min |
| Checklist values | Array of unique allowed option strings; empty allowed; at most the number of options |
| Boolean | JSON true or false |
| Automatic saving | trigger: 'change' supports non-text fields only; each field belongs to at most one automatic control |
Date/time fields do not convert timezones. Empty values are allowed by the field contract; require a selection in your action if needed. Palette colors are suggestions, not an allowlist. Existing text values may contain up to 4,096 UTF-16 units even when maxLength is lower; submitted values must satisfy maxLength. The overall 2 KiB action payload limit still applies to the combined form. See controls and configuration and the Event form walkthrough.
Website and HTML panels
| Item | Limit / behavior |
|---|---|
| Fixed source | Exactly one HTTPS url or bundled html on ObjectDefinition.web |
| URL | At most 2,048 UTF-16 units; no credentials, Scape hostname or wildcard host |
| HTML | At most 16,384 UTF-16 units; JavaScript requires interactive: true |
| Title | Nonempty, at most 240 UTF-16 units |
| Public data | ObjectView.webData: JSON object, at most 8,192 encoded UTF-16 units; requires context: true |
| Declared bridge actions | At most 16 distinct participant actions; names match [a-zA-Z0-9_-]{1,64} |
| Action request | ID matches [a-zA-Z0-9_-]{1,64}; JSON-object payload at most 2,048 encoded UTF-16 units |
| Payload validation | Depth at most 16; repeated object references, cycles and non-JSON values rejected |
| Action pacing | One outstanding request; at least 200 ms between accepted starts; server limits also apply |
| Room lists | At most 128 IDs each in allow and deny; IDs match [a-zA-Z0-9_-]{1,128} |
| Native / preview | iOS isolation-v1 builds embed websites and HTML; WebKit media/capture disabled; older binaries require an update; no shop-preview embeds |
See Website and HTML panels for isolation and lifecycle. Browser content has no CPU or memory quota; bundled HTML is not guaranteed to make zero outgoing navigation requests.
Sprite images
| Item | Limit / behavior |
|---|---|
| Sprite canvas / layers | Integer 64–512 pixels; 1–4 layers, each with 1–16 shapes |
| Complete sprite recipe | At most 16,384 UTF-16 units of JSON |
| Embedded image | Base64 PNG only, at most 12,000 characters; no URL or data-URL prefix |
| Decoded PNG | 1–256 pixels per side; 8-bit RGB/RGBA; non-interlaced |
| PNG chunks | Only IHDR, IDAT and IEND; no animation or metadata |
Immediate contact feedback
interactionFeedback provides immediate audio and bursts for participant tap/bump actions. See contact feedback for replacement and confirmation behavior.
| Item | Limit / behavior |
|---|---|
| Declared contact actions | At most 32; each must be a participant action named in interaction |
| Complete declaration map | At most 16,384 UTF-16 units of JSON text |
| Recipe | durationMs plus audio, a burst, or both; only audioMode and burstMode are optional mode fields |
| Feedback duration | 1–2,000 ms |
| Audio commands, when supplied | 1–16; every delayMs is 0; playback cannot loop |
| Replacement modes | overlap (default) or replace, independently for audio and bursts |
| Burst radius / particles | 0.1–8 cells / integer 0–24 |
| Pending interaction requests | At most eight per placed object; contact feedback still responds at the cap |
| Local sound preparation | Playback that cannot start within 120 ms is dropped |
| Shared contact freshness | Contact timestamps more than one second old or ahead of the server clock suppress matching shared contact effects; actions and distinct results still complete |
Contact effects acknowledge attempts, including attempts later rejected. They do not predict permissions or saved state. Existing sound, feedback and burst validation still applies.
Gizmo releases and world installations
| Item | Limit / behavior |
|---|---|
| Installed projects per world | No fixed count cap; code validation and execution budgets still apply |
| Custom types per world | No fixed count cap; types and emojis must be unique across the catalog, including disabled installations |
| Versions per installed project | One; updates are explicit per world |
| Project identities per account | 16; retained after deleting their releases |
| Retained releases per account | 32; deletion also requires no shop retention obligation |
| Compiled release | 1 MiB, including embedded assets |
| Release creation / installation validation | 12 changes per account per minute; shared capacity can also limit requests |
Releases keep fixed code and increasing version numbers. Deleting one does not reuse its number. See Use Gizmos in your worlds for the full workflow.
Gizmo shop
| Item | Limit / behavior |
|---|---|
| Price | 1–1,000,000,000 whole stones |
| Creator treasury fee | 2% of each sale, rounded down to whole stones |
| Catalog | 200 products |
| Pending review | 100 submissions across the shop |
| Retained submissions | 100 per product |
| Purchased versions | Future approved releases of the same product are included; world updates remain explicit |
Purchases do not increase world project or Gizmo limits. See Gizmo shop for submission, purchase and refund behavior.
Gizmo connectors
| Item | Limit / behavior |
|---|---|
| Inputs / outputs per definition | 8 / 8 |
| Port ID / boolean payload field | 1–48 characters; starts with a letter, then letters, digits, _ or - |
| Port label / optional event phrase | Nonblank, at most 80 characters each |
| Fixed input payload | JSON object serialized to at most 1,024 characters |
| Manual action locks per boolean input | At most 8 declared action names; defaults to its input action |
| Outgoing connections per instance | No fixed count cap |
| Connections per world | No fixed count cap; existing world and request size limits apply |
| Maximum chain | 16 links; no cycles |
| Action deliveries per propagation | No fixed count cap; execution budget applies |
| Execution budget per propagation | 250 ms; failed propagation rolls back state and feedback |
| One output → one receiver | One input; different outputs can connect to that same receiver |
| Boolean input sources | One unless combine: 'any' enables logical OR |
| Editable endpoints | Same owner and floor; edit access to both required |
See connectors and signals for examples and held-input behavior.
Agent access
| Item | Limit / behavior |
|---|---|
| Pairing code | 5 minutes |
| Approved grant | Current approvals survive sign-out and have no time expiry (expiresAt: 0) |
| Scope | One approved agent per owner; one approved public or owned world |
| Gateway idle expiry | 15 seconds without successful activity |
| MCP background observation | Every 250 ms while entered |
| MCP tool-inactivity departure | 2 minutes |
| Observation wait | Up to 25 seconds |
| Speech | 320 characters; 12 final non-empty updates/minute |
| Non-step actions / steps | 120 / 300 per minute per presence session |
| Authenticated grant requests | 900/minute including background observations |
| Untimed command receipts | 2,048 retained per session |
| Timed retry window | 2 minutes, at most 10 seconds future clock skew |
| Follow / approach deadline | 5 minutes / 40 seconds |
| No-progress pursuit deadline | 10 seconds; stationary holding is permitted |
Stop and leave bypass action/request rate limits while valid access remains. Re-pairing, moderation, account deletion, and loss of world access end access. Making a public world private ends access unless the agent owner owns it; ownership transfer alone does not end access while a world stays public. Other accounts' developer worlds remain private.
CLI runtime
| Item | Limit / behavior |
|---|---|
| Conversation requests | Unlimited by default (limits.maxModelCalls: 0) |
| Finite conversation budget | Counts failed requests and private reply checks; retained across sleep/reconnection |
| Optional decision model | Separate default 500-attempt limit, including recovery; transient failures back off, rejected input is skipped, credentials/credits or exhaustion suspend decisions while basic behavior continues |
| Provider retry | Conversation failures and turn timeouts retry while observing, with 1–30 second exponential backoff |
| Connection recovery | Temporary observation/connection failures re-enter with fresh context and cancel old decisions |
| Runtime deadline | No fixed duration; the process must stay running with valid access and available request budget |
Unlimited conversation requests do not disable per-turn timeouts, tool-round limits, gateway limits or provider charges. Ctrl+C and Scape access denial end the run. The CLI does not restart itself after a process crash or install a background service. Custom policies own their provider budgets and recovery; custom MCP applications also own reconnection. See configuration.
Agent avatars
Images up to 512 KiB are normalized to static WebP at most 256 × 256. Static, self-contained GLBs support Mote materials and Meshopt compression, up to 4 MiB, 100,000 triangles and 32 draw calls. Each base supports up to eight custom expression frames.
Avatar registration has a five-second cooldown; expression selection has a one-second cooldown. See avatars for supported formats and rejected features.
Local agent dashboard and plans
- Dashboard log buffer: latest 300 entries, up to 2,000 characters each.
- Task plan: up to eight ordered steps; each movement step has a 45-second deadline.
- Task history: latest 20 plans, session-local; reconnects do not replay actions.
- Optional conversation notes: 500 characters each, 20 per visitor/world/agent/origin scope, 256 total, retained for 30 days. Off by default; explicit player requests only.
Host market data
A market declaration supports only kind: 'solana-token', an editor action and state-field identifiers of 1–64 characters. The optional display field must differ from the token field. Token addresses use 32–44 base58 characters; symbols are 1–24 characters and names 1–100, with nonblank content and no control characters. Syntax validation does not prove that an address exists or is a token mint. The host validates returned provider data and owns polling, caching and request budgets. No provider credentials, network access or quote history enter the gizmo. See Host market data and Gizmos.
