Talos docs

ui.viewport

Since next

Size the engine's surface in device pixels, 64 to 8192 a side, and lay the UI out at it: a screenshot matrix's resolution axis, on one engine.

Plain text

dpr, the device-pixel ratio to lay out for, 0.25 to 8, is taken as given, never inferred; layout is width/dpr by height/dpr. Answers the applied scale block (viewport: the logical size), laid out already: ui.tree reads the new size.

TitleResize the surface
Modeeditor
Token costabout 187 tokens (listed only when its toolset is enabled)
Toolsetui

Arguments

ArgumentTypeRequiredDefaultAllowed valuesDescription
agentstringnoThe name of the agent making the call, when several agents share one connection: each named agent is its own actor and plays its own game. Leave it out when there is one agent.
dprnumberno
heightintegeryes
widthintegeryes

Example

An MCP tools/call with the required arguments (placeholders in angle brackets).

{
  "name": "ui.viewport",
  "arguments": {
    "height": 64,
    "width": 64
  }
}