cohere_generate
Generate text completions for any prompt with Cohere Command models. Adjust generation using model, max_tokens, and temperature parameters.
Instructions
Generate text completions using Cohere Command models.
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": "cohere_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model ID (default: command) | |
| prompt | Yes | ||
| api_key | No | ||
| max_tokens | No | ||
| temperature | No | ||
| stop_sequences | No | JSON array of stop strings |