import_email_image
Copy an image from an accessible page file library or email image library into the target email's permanent storage. Authorizes both resources, validates image format/size, and returns the image URLs. Repeated imports reuse the copy. Does not edit the document; use the returned URL in a subsequent edit.
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": {
"target": "<target>",
"source": "<source>",
"assetId": "<assetId>",
"description": "<description>"
},
"name": "import_email_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| target | Yes | Target email resource; kind must be email. | |
| assetId | Yes | Source page fileId or email imageId from its document snapshot. | |
| description | Yes |