Skip to main content

Wait briefly for a Manus task

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READmanus.wait_for_task
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: manus-2026.07.12.2
  • Descriptor hash: 40d99818e0fe806c5d247e98b35f88aa606b18f3d58a6571e8fef7515e115ab3

Use this bounded read-only polling helper only when waiting up to 60 seconds is appropriate. It repeatedly contacts the Manus task message endpoint using the request-scoped x-manus-api-key, stops when the task completes, fails, or needs input, and returns control with explicit next-action guidance. It never mutates or automatically retries the task itself.

Request Body

{
"jsonrpc": "2.0",
"id": "manus-wait-for-task-example",
"method": "tools/call",
"params": {
"name": "manus.wait_for_task",
"arguments": {
"task_id": "task_id_123",
"max_wait_seconds": 1,
"poll_interval_seconds": 1,
"include_attachment_urls": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"task_id"
],
"properties": {
"task_id": {
"type": "string",
"description": "Stable Manus task identifier returned by create_task or a task-list response."
},
"max_wait_seconds": {
"type": "integer",
"default": 45,
"description": "Maximum bounded time this call may poll before returning control to the agent."
},
"poll_interval_seconds": {
"type": "integer",
"default": 5,
"description": "Seconds between bounded task-progress polls."
},
"include_attachment_urls": {
"type": "boolean",
"default": false,
"description": "Whether compact task results may include provider attachment URLs."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or provider operation completed successfully."
},
"data": {
"description": "Bounded provider or local result data."
},
"error": {
"description": "Secret-safe provider or validation error details."
},
"dry_run": {
"type": "boolean",
"description": "Whether the result is an execution preview rather than a provider mutation."
},
"message": {
"type": "string",
"description": "Human-readable status or recovery guidance."
},
"http_status": {
"type": "integer",
"description": "Manus provider HTTP status when an external endpoint was contacted."
},
"next_action": {
"type": "string",
"description": "Recommended next agent action when another step is useful."
},
"confirmation_required": {
"type": "boolean",
"description": "Whether approval is required before a write can execute."
}
},
"description": "Secret-safe Manus MCP operation result.",
"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": "manus-wait-for-task-example",
"method": "tools/call",
"params": {
"name": "manus.wait_for_task",
"arguments": {
"task_id": "task_id_123",
"max_wait_seconds": 1,
"poll_interval_seconds": 1,
"include_attachment_urls": false
}
}
}'

Example Responses

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