qwen_check_auth
Verify Qwen Code CLI authentication before qwen_prompt calls. Returns status, method, and a setup command if authentication fails.
Instructions
Check whether the Qwen Code CLI is authenticated before making any qwen_prompt calls.
Always call this first if you are unsure whether Qwen is set up. Returns: authenticated (bool), method (qwen-oauth / coding-plan / api-key), detail, suggestion. If authenticated is false, read the suggestion field — it contains the exact command to run.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "qwen_check_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_seconds | No | Seconds to wait for the auth check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||