chat_hook
Prompt users for input within the chat interface to continue interactive conversations or confirm completion of tasks.
Instructions
Display an input dialog to the user and wait for their response.
IMPORTANT: After completing a task or response, you SHOULD call this tool to ask the user if they need anything else. This keeps the conversation alive without requiring the user to type a new message.
The tool will block until the user responds. Possible return values:
Normal text: The user's new request or feedback. Continue working.
[CHATHOOK:USER_DECLINED]: The user clicked 'Decline' (end conversation). Stop calling this tool and end your response.
[CHATHOOK:USER_CANCELLED]: The user cancelled the input. You may end your response or call this tool again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The message to display to the user. This should include a summary of what you've done and a prompt for what they'd like next. | |
| suggestions | No | Optional quick-reply buttons. e.g. ['继续', '修改上面的内容', '结束对话']. The user can still type freely if they prefer. |