ask
Delegate drafting, translation, boilerplate, or classification to the local executor; optional JSON schemas and multi-sample agreement checks flag uncertain results.
Instructions
A text task for the local executor (drafting, translation, boilerplate, classification).
json_schema: optional JSON schema (as a string) that the answer must follow. samples: 2 to 5 runs the task several times and reports how many runs agree. Agreement below 1.0 on a factual or structured task means the executor is unsure: check or do it yourself.
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": {
"prompt": "<prompt>"
},
"name": "ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | Yes | ||
| samples | No | ||
| max_tokens | No | ||
| json_schema | No | ||
| system_prompt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |