krita_sample_color
Sample a pixel's color from a Krita canvas or specific layer, returning its hex value and alpha without altering the foreground color.
Instructions
Read one settled RGBA/U8/sRGB projection pixel from the canvas or explicit node. Returns hex color and alpha without changing foreground color.
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": {
"instance_id": "<instance_id>",
"document_id": "<document_id>",
"x": "<x>",
"y": "<y>"
},
"name": "krita_sample_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| node_id | No | ||
| document_id | Yes | ||
| instance_id | Yes |