fotoai_get_generation
The status of a FotoAI generation, and once it is completed its outputs saved into this Postemi workspace's media library.
Pass the generation_id from fotoai_generate (or any FotoAI generation id the user gives you). While status is "running" or "queued", wait and call again (or pass wait_seconds up to 50). When status is "completed", attach each media PATH (not the id) to create_post. A failed generation costs nothing.
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": {
"generation_id": "<generation_id>"
},
"name": "fotoai_get_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| import | No | Save the outputs into the media library (default true). | |
| wait_seconds | No | Wait up to this long for a running generation (0 to 50). | |
| generation_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| output | No |