Tools

Tools give assistants access to native AI provider capabilities like web search, file search, code interpreter, image generation, and computer use.

Endpoints

Manage assistant tools with these REST endpoints.

Tool type

ParameterTypeDescription
idstringUnique identifier for the tool
typestringTool type: WEB_SEARCH, FILE_SEARCH, CODE_INTERPRETER, IMAGE_GENERATION, or COMPUTER_USE
fileSearchToolobject?Present when type is FILE_SEARCH
webSearchToolobject?Present when type is WEB_SEARCH
codeInterpreterToolobject?Present when type is CODE_INTERPRETER
imageGenerationToolobject?Present when type is IMAGE_GENERATION
computerUseToolobject?Present when type is COMPUTER_USE
createdAtstringTimestamp when the tool was created
updatedAtstringTimestamp when the tool was last updated

Type-specific fields

fileSearchTool

FieldTypeDescription
vectorStoreIdsstring[]IDs of vector stores to search
maxNumResultsnumberMaximum number of results to return

imageGenerationTool

FieldTypeDescription
modelstringModel to use (e.g. gpt-image-1)
qualitystringAUTO, LOW, MEDIUM, or HIGH
sizestringAUTO, SIZE_1024_1024, SIZE_1024_1536, or SIZE_1536_1024
outputFormatstringPNG, WEBP, or JPEG
backgroundstringAUTO, TRANSPARENT, or OPAQUE
partialImagesnumberNumber of partial images

computerUseTool

FieldTypeDescription
displayWidthnumberDisplay width in pixels (640–4096)
displayHeightnumberDisplay height in pixels (480–4096)
environmentstringLINUX, WINDOWS, MACOS, or BROWSER
mcpServerIdstring?ID of the linked MCP server
webSearchTool and codeInterpreterTool have no configurable fields.

Example tool

{ "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "IMAGE_GENERATION", "imageGenerationTool": { "model": "gpt-image-1", "quality": "HIGH", "size": "SIZE_1024_1024", "outputFormat": "PNG", "background": "AUTO", "partialImages": 0 }, "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T10:30:00Z" }

Tool availability

Not all tools are available for every provider configuration. The available combinations are:
Tool typeProvider + Storage combinations
WEB_SEARCHAnthropic + Superinterface Cloud, OpenAI + Responses API, Azure OpenAI + Responses API
FILE_SEARCHOpenAI + Responses API, Azure OpenAI + Responses API, OpenAI + Assistants API, Azure OpenAI + Assistants API, Azure AI + Agents
IMAGE_GENERATIONOpenAI + Responses API, Azure OpenAI + Responses API
COMPUTER_USEAnthropic + Superinterface Cloud, OpenAI + Responses API, Azure OpenAI + Responses API
CODE_INTERPRETERAnthropic + Superinterface Cloud, OpenAI + Responses API, Azure OpenAI + Responses API, OpenAI + Assistants API, Azure OpenAI + Assistants API, Azure AI + Agents
Creating a tool with an unavailable type for the assistant's provider configuration will return a 400 error.