provider_adapter
Convert between LLM provider tool formats (openai, anthropic, google, mcp) and Record collections. Actions: import_tools (create collections from tool definitions), export_tools (export collections as tool definitions), import_tool_call (create a record from a tool call in provider format).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | enum: import_tools | export_tools | import_tool_call | Yes | |
workspace_id | string | Yes | Target workspace ID |
provider | enum | Yes | LLM provider format |
tools | array | No | Array of tool definitions in provider format (import_tools) |
collection_ids | array | No | Collection IDs to export (export_tools, omit for all) |
collection | string | No | Target collection (import_tool_call) |
call_data | object | No | Tool call data in provider format (import_tool_call) |
external_id | string | No | External ID for idempotent upsert (import_tool_call) |
external_source | string | No | External source identifier (import_tool_call) |