-
Notifications
You must be signed in to change notification settings - Fork 55k
Open
Labels
status:in-linearIssue or PR is now in LinearIssue or PR is now in Lineartriage:pendingWaiting to be triagedWaiting to be triaged
Description
Bug Description
The bug:
After upgrading from n8n v2.4.7 to v2.6.3, the Vector Store Question Answer Tool (toolVectorStore v1.1)
generates invalid tool schemas that both OpenAI and Anthropic APIs reject.
Error with OpenAI:
Invalid schema for function 'protocol_knowledge': schema must be a JSON Schema of 'type: "object"', got 'type:
"None"'.
Error with Anthropic:
tools.0.custom.input_schema.type: Field required
To Reproduce
To Reproduce:
- Create workflow with: Chat Trigger → AI Agent (v3.1) → OpenAI/Anthropic Chat Model
- Add Vector Store Question Answer Tool (v1.1) connected to AI Agent
- Connect PGVector Store (v1.3) + Embeddings + Chat Model to the Vector Store Tool
- Activate and send a message that triggers the tool
Expected behavior
Expected behavior:
Tool should generate valid JSON schema with type: "object" for function calling.
Workaround:
Downgrade to n8n v2.4.7 where it worked.
Environment:
- n8n v2.6.3 (npm, self-hosted)
- PostgreSQL
- Node versions: toolVectorStore 1.1, agent 3.1, vectorStorePGVector 1.3
Debug Info
Debug info
core
- n8nVersion: 2.6.3
- platform: npm
- nodeJsVersion: 24.13.0
- nodeEnv: production
- database: postgres
- executionMode: regular
- concurrency: -1
- license: enterprise (production)
- consumerId: 70d2c345-ccff-4fc0-9ea2-0552f008b06a
storage
- success: all
- error: all
- progress: false
- manual: true
- binaryMode: filesystem
pruning
- enabled: true
- maxAge: 720 hours
- maxCount: 10000 executions
client
- userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/605.1.15 (khtml, like gecko) version/26.2 safari/605.1.15
- isTouchDevice: false
Generated at: 2026-02-04T04:32:32.663Z
Operating System
Ubuntu Linux 6.8.0-86-generic
n8n Version
2.6.3
Node.js Version
v24.13.0
Database
PostgreSQL
Execution mode
main (default)
Hosting
self hosted
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status:in-linearIssue or PR is now in LinearIssue or PR is now in Lineartriage:pendingWaiting to be triagedWaiting to be triaged