Complete Task
complete_task is one of the 32 MCP tools in Weft, the AI task manager you run by talking to Claude, Cursor, Codex or ChatGPT through one MCP endpoint. The AI calls this when the work is actually finished — the card moves to Done with completion time recorded, and the optional outcome (what was done, where the result lives) is appended to the card as an "Outcome (AI, date)" note. No column id needed. Work marked as needing you does NOT move to Done: it goes to your queue with the receipt attached, and if the agent said what it would do next, accepting approves exactly that step and hands it back to the agent. If the task carries a verification plan, the server executes its checks right here — fetching the URL, looking for the quote, comparing the hash: an executable/state_delta plan whose blocking checks all pass closes verified by the server; a failed blocking check keeps the card out of Done and shows the agent what the server observed.
Weft là trình quản lý công việc bằng AI cho nhà sáng lập độc lập và nhóm nhỏ.
Tài liệu tham khảo công cụ được duy trì bằng tiếng Anh: tên công cụ, tham số và ví dụ là như nhau trong mọi ngôn ngữ.
Tham số
| Tên | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
| id | uuid | có | Task id to complete. |
| outcome | string | không | 1-3 sentences: what was done and where the result lives. |
| artifacts | { kind, uri }[] | không | Evidence a person could check without trusting the account of it — a URL, a hash, a message id. |
| learnings | (string | { trigger, content })[] | không | Up to 3 lessons worth remembering beyond this task — they become memory notes and surface in every future get_my_work, stamped with source and date. |
| nextStep | string | không | What the agent would do next if you accept (≤200 chars) — shown above the Accept button, so accepting approves exactly that. |
Trả về
The task, now in Done with completedAt set — or awaitingReview:true when it stopped at you instead.
Chú thích
Công cụ ghi mặc định. Công cụ thay đổi trạng thái; client MCP có thể tự gọi khi đã biết người dùng muốn gì. Việc có hỏi xác nhận hay không là lựa chọn của client; đặc tả Model Context Protocol khuyến nghị luôn có con người trong vòng lặp, với khả năng từ chối các lượt gọi công cụ.
Ví dụ
Người dùng nói:
"Mark the deploy task done — released in v1.2.0."Liên quan
- Tất cả 32 công cụ MCP — xem dạng danh mục.
- Con thoi — cách client AI dùng những công cụ này.
- Gọi công cụ này qua client của riêng bạn: xem hướng dẫn thiết lập, hoặc gọi thẳng
https://letsweft.com/api/mcp.