Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Query or poll SurgePix async task status and get task results (download URL). Use when the user says "check task", "poll task", "query task status", "任务进度", "查任务", has a taskId from remove-background, image-translate, generate-illustrations, generate-xhs or other async API, or needs to wait for a task to finish. Output rule: taskResult has only ONE download field. When download is a ZIP or resultType is zip, show ONLY that ZIP URL; NEVER fabricate individual image links.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -60% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 347% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 7% | 0% |
| case-21 | ✗→✓ | ▲ Improved | -5% | 0% |
Query task progress via GET /tasks/{taskId} once and print the current status. This skill does not poll — it returns the task's current state in a single call; re-run it later to check again.
This skill does not generate content. Reply to the user in the same language they used in their request. When presenting a ZIP download URL from upstream skills, do not fabricate per-image links.
taskId from an async SurgePix API (e.g. remove-background / generate-poster / generate-presentation / image-translate 在 --nowait true 时返回的 taskId)download URL is ready--nowait true(异步)方式运行,返回 {"async":true,"taskId":...} 后,用本技能在合适时机查询该任务(单次查询;未完成则稍后再查)SURGEPIX_API_KEY configured (see Step 0)bashnode "<skills-dir>/surgepix-setup/scripts/check_env.mjs"
The user should provide a task ID returned by an async API, e.g.:
json{"taskId":"task_a1b2c3d4e5f6","progress":"processing"}
If the user just submitted remove-background / generate-poster / generate-presentation / image-translate 以 --nowait true(异步)模式运行,use the taskId from that response(响应中 async:true)。
Check the current status once and print the result:
bashnode "<skills-dir>/surgepix-query-task/scripts/query_task.mjs" "<taskId>"
| Argument | Description | |----------|-------------| | <taskId> | Task ID from an async API (e.g. task_abc123) |
> This skill performs a single query and prints the current status — it does not poll/wait. If the task is still processing, simply run the command again later to check.
Success (stdout):
json{"ok":true,"taskId":"task_xxx","sessionId":123,"progress":"succeeded","download":"https://...result.png","taskResult":{"download":"https://..."}}
Still processing:
json{"ok":true,"taskId":"task_xxx","sessionId":123,"progress":"processing","download":null,"taskResult":null}
→ Wait a bit and run the same command again to re-check.
Failure (stderr):
json{"ok":false,"error":"Task not found: task_xxx"}
| progress | Meaning | Action | |----------|---------|--------| | processing | Still running | Re-run the query later to check again | | succeeded | Done | Show download URL | | failed | Failed | Tell user, no download available |
适用于 remove-background / generate-poster / generate-presentation / image-translate 以 --nowait true 运行:
1. <skill> --nowait true → returns {"async":true,"taskId":...}
2. query_task.mjs <taskId> → prints current status (download URL once succeeded)
3. 若仍为 processing,稍后重复第 2 步再查,直到 succeeded / failed> 若上游技能以 --nowait false(默认,同步)运行,脚本内部已轮询并直接返回 download,无需再调用本技能。
download from script outputOther measured skills in the registry, with their headline benchmark lift.