ask
Sends a message to a web chat site (or several at once) and returns the first answer, so agents can get free AI responses without an API key. Supports threads, file uploads, and new chats.
Instructions
One message to a web chat. site: glm | qwen | kimi | deepseek | gemini, or several comma-separated
("deepseek,qwen,glm"): the first that answers wins, sites out of quota / needing a human are skipped.
message_file: path whose text is sent (after message if both) - cheaper than writing a long prompt inline.
thread: name of a conversation to continue. files: absolute paths uploaded into the chat. new_chat: start over.
model: a model name from the site's menu instead of the strongest one. max_chars: longer answers are saved whole
to answer_file and only the head is returned (0 = everything).
Returns {answer (markdown), site, model, url, seconds, new_chat, skipped, answer_file?, answer_chars?}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>"
},
"name": "ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| files | No | ||
| model | No | ||
| thread | No | ||
| message | No | ||
| timeout | No | ||
| new_chat | No | ||
| max_chars | No | ||
| message_file | No |