generateTextWithOpenAI
Generate text content using OpenAI models to create prompts, descriptions, and responses for 3D design projects within the Spline environment.
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": "generateTextWithOpenAI"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Prompt for text generation | |
| model | No | OpenAI model to use | gpt-3.5-turbo |
| maxTokens | No | Maximum number of tokens to generate | |
| temperature | No | Temperature for text generation (0-2) |