watson_generate_text
Generate text from a prompt using watsonx.ai foundation models. Specify model, input, and project ID to create content.
Instructions
Generate text using a watsonx.ai foundation model
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": {
"model_id": "<model_id>",
"input": "<input>",
"project_id": "<project_id>"
},
"name": "watson_generate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | Model ID | |
| input | Yes | Input prompt | |
| project_id | Yes | watsonx project ID | |
| max_new_tokens | No | Max tokens to generate (default 200) | |
| temperature | No | Temperature 0-2 (default 0.7) | |
| top_p | No | ||
| top_k | No | ||
| region | No |