local_ask
Ask a local model to generate, rewrite, summarize, or explain text, returning the answer as plain text. Specify the model, prompt, optional system role, temperature, context, and max tokens.
Instructions
Asks a local model a question and returns the answer as text.
For free-text tasks: writing, rewriting, summarizing, explaining. If a
machine-processable result is needed, use 'local_structured' instead.
Args:
model: Model name as in 'list_models', for example 'llama3.2:3b'.
prompt: The actual instruction for the model.
system: Optional role/behavior instruction.
temperature: 0 means as deterministic as possible (default), higher means more creative.
max_tokens: Optional cap on the number of generated tokens.
context: Optional text prepended to the prompt (source, excerpt, data).
think: Enables the model's reasoning trace. Off by default, because the
reasoning trace otherwise consumes the answer's token budget (with a
tight 'max_tokens' the answer then comes back empty). Only for models
with the 'thinking' capability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| think | No | ||
| prompt | Yes | ||
| system | No | ||
| context | No | ||
| max_tokens | No | ||
| temperature | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||