upload_translation_key_screenshot
Upload a base64-encoded screenshot (PNG/JPG/JPEG) to a translation key, replacing any existing one. Requires a valid key, with optional namespace.
Instructions
This tool will upload a screenshot for a translation key from a base64-encoded image.
Provide 'key' (required), optionally 'namespace', and 'base64' (required, PNG/JPG/JPEG, max 2MB).
Replaces the existing screenshot if one exists. Throws an error if the translation key does not exist.
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": {
"key": "<key>",
"base64": "<base64>"
},
"name": "upload_translation_key_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The translation key name. | |
| base64 | Yes | Screenshot image encoded in base64 (PNG/JPG/JPEG, max 2MB). Replaces any existing screenshot. | |
| namespace | No | The namespace for the translation key (optional). |