wesktop v0.10.0 /src.wesktop.mcp_tools.ask_user
On this page

Ask-user MCP tool that posts a question to the wesktop dashboard over HTTP and polls for the user's answer with server_url, auth_token, and a timeout.

#src.wesktop.mcp_tools.ask_user

#src.wesktop.mcp_tools.ask_user

Ask-user MCP tool: posts a question to the wesktop dashboard via HTTP API and polls for the user's answer with configurable timeout.

Reaches the server via HTTP using server_url and auth_token parameters.

#ask_user

python
def ask_user(server_url: str, auth_token: str, session_id: str, branch: str, role: str, question: str, options: list[str] | None=None, poll_timeout_seconds: float=POLL_TIMEOUT_SECONDS, poll_interval_seconds: float=POLL_INTERVAL_SECONDS) -> str

Post a question to the dashboard inbox and block until it is answered.

Creates a persisted question via POST /api/questions, then polls GET /api/questions/{id} every poll_interval_seconds until status becomes "answered" or poll_timeout_seconds elapses. Returns the answer text, or an error/timeout message.