direct_upload_adimage
Upload an ad image to Yandex Direct from a local file path or raw base64, and get the AdImageHash needed for TextAd campaigns.
Instructions
WRITE: adimages.add from local file path (server FS) or raw base64. Returns AdImageHash for TextAd.AdImageHash. allow_write=true.
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": {
"name": "<name>"
},
"name": "direct_upload_adimage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Image name in Direct | |
| dry_run | No | ||
| file_path | No | Absolute path to jpg/png | |
| allow_write | No | Must be true to mutate live cabinet. Without it tools return dry plan only. | |
| image_base64 | No | Raw base64 without data: prefix |