pixel_convert
Convert values between CSS units px, pt, rem, em, and percent. Specify source and target units, with an optional base font size for accurate conversions.
Instructions
Convert between px, pt, rem, em, and percent CSS units.
Parameters:
value — Value to convert.
from_unit — Source unit: 'px', 'pt', 'rem', 'em', 'percent'.
to_unit — Target unit.
base_size — Base font size (default: 16px).
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": {
"value": "<value>",
"from_unit": "<from_unit>",
"to_unit": "<to_unit>"
},
"name": "pixel_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| from_unit | Yes | ||
| to_unit | Yes | ||
| base_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |