imgui_set_anchor
Position a window within the viewport by assigning a named anchor like top_left, center, or bottom_right, with optional X/Y offsets for precise placement.
Instructions
Set a window's anchor position relative to the viewport (e.g. top_left, center, bottom_right)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"window": "<window>",
"anchor": "<anchor>"
},
"name": "imgui_set_anchor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchor | Yes | Anchor position relative to viewport | |
| window | Yes | Window identifier | |
| offset_x | No | X offset from anchor point (default 0) | |
| offset_y | No | Y offset from anchor point (default 0) |