Execute Blueprint And Wait
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- 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
- Node.js
- Python
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": ""
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"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": ""
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"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": ""
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"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."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}