Ask the User a Question
request_input 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. Ask the person something only they can decide, and wait without losing the claim on the task. If they are at their client, a form appears there and the answer comes back inside the same call — the agent carries on in the same context, with the same claim. If they are away, the call returns parked and the question waits in their queue; the answer reaches the agent at its next start_task or get_my_work. For the irreversible and the genuinely ambiguous, not for "may I continue?" — every question spends the same attention budget that limits new work.
Weft 是为独立创业者和小团队打造的 AI 任务管理工具。
工具参考文档只用英文维护:工具名称、参数和示例在每种语言下都完全相同。
参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | Task ID |
| runId | string | 是 | The runId returned by start_task |
| leaseToken | string | 是 | The leaseToken returned by start_task |
| question | string | 是 | One sentence a person can answer (≤500 chars) |
| options | { value, label }[] | 否 | The alternatives, when there are any. A question with options gets read; a yes/no gets rubber-stamped. |
| urgency | 'blocking' | 'soon' | 否 | Default 'blocking' |
| holdSeconds | number | 否 | How long to wait inside the call before parking (default 120, max 240) |
返回
Either answered:true with the answer and the same runId/leaseToken to continue with, or parked:true with a questionId — the claim is kept either way, and a parked question is delivered back through start_task and get_my_work.
标注
- 幂等。用相同参数调用两次,效果与调用一次相同。
示例
用户会这样说:
"Ask me before you send anything to a customer."AI 在背后这样调用:
{
"name": "request_input",
"arguments": {
"id": "…",
"runId": "…",
"leaseToken": "…",
"question": "Which discount should the email offer?",
"options": [
{
"value": "10",
"label": "10%"
},
{
"value": "15",
"label": "15%"
}
]
}
}相关
- 全部 32 个 MCP 工具 — 目录视图。
- 梭子 — AI 客户端如何使用这些工具。
- 用你自己的客户端调用这个工具:查看接入指南,或者直接访问
https://letsweft.com/api/mcp。