text_generation
Generate text from a single prompt for one-shot tasks like summarization, translation, extraction, or Q&A. Provide a prompt and optional parameters to get a direct text response.
Instructions
Generate text from a single prompt (simplified interface). Ideal for one-shot tasks like summarization, translation, extraction, or Q&A.
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": "text_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | ||
| model | No | ||
| prompt | Yes | Text prompt | |
| max_tokens | No | ||
| temperature | No | ||
| system_prompt | No |