ap_get_context
Retrieve the current painting context: active tool, brush properties, viewport mode, x-ray flag, layer/material selection state, and active material name.
Instructions
The workhorse read: the live painting context — active tool, brush radius/opacity/hardness/scale/angle/blending, viewport display mode, x-ray flag, whether a layer and a material are selected, and the active material's name. Note that only whether a layer is selected can be reported: the layer object itself is an opaque pointer with no readable fields.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ap_get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||