ingest_generated_images
Accept a slug and asset-key image map to normalize generated illustrations, center-crop them to 1280x960 4:3 landscape, and save each as PNG and WebP for storybook pages.
Instructions
Step 3: After generating illustrations (via subagents or image tools), pass a dictionary
mapping asset keys (e.g. {"cover": "/path/to/img.jpg", "page-01-reality": "..."})
to normalize, center-crop to 1280x960 (4:3 landscape), and save both .png and .webp.
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": {
"slug": "<slug>",
"image_map": "<image_map>"
},
"name": "ingest_generated_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| image_map | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |