Skip to main content

Execute Blueprint And Wait

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEleonardo-ai.leonardo_execute_blueprint_and_wait
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: leonardo-ai-2026.07.12.1
  • Descriptor hash: 28141a48e246acaad40bb942edfbbc5015f77f4b4683566ce270f88b991546d9

Execute a Leonardo blueprint and poll execution plus generation results. Requires the request-scoped x-leonardo-api-key Portal field and contacts Leonardo.Ai.

Request Body

{
"jsonrpc": "2.0",
"id": "leonardo-ai-leonardo-execute-blueprint-and-wait-example",
"method": "tools/call",
"params": {
"name": "leonardo-ai.leonardo_execute_blueprint_and_wait",
"arguments": {
"body": "",
"timeout_seconds": ""
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Leonardo request body using provider parameter names exactly. For v1 image generation use fields such as prompt, modelId, width, height, num_images, alchemy, ultra, public, imagePrompts, init_image_id, or isInitImage. For v2 generation use model, public, and parameters."
},
"timeout_seconds": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional timeout override in seconds. Uses server defaults when omitted."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"description": "Leonardo MCP result. ok=false, provider_ok=false, a failed status, or an error field represents a semantic failure even when transport delivery succeeded.",
"additionalProperties": true
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "leonardo-ai-leonardo-execute-blueprint-and-wait-example",
"method": "tools/call",
"params": {
"name": "leonardo-ai.leonardo_execute_blueprint_and_wait",
"arguments": {
"body": "",
"timeout_seconds": ""
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool leonardo-ai.leonardo_execute_blueprint_and_wait executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}