Describe the problem/error/question
I called the Airtable tool in Agent using the genimi api or Claude api, and then an error occurred.
What is the error message (if any)?
Bad request - please check your parameters
Invalid JSON payload received. Unknown name “$schema” at ‘tools[0].function_declarations[0].parameters’: Cannot find field.
Please share your workflow
{
“name”: “My workflow 5”,
“nodes”: [
{
“parameters”: {
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.chatTrigger”,
“typeVersion”: 1.1,
“position”: [
-440,
-200
],
“id”: “2be65cb9-84a5-4c40-893d-2a831ffdf166”,
“name”: “When chat message received”,
“webhookId”: “93781d8f-6f9c-4640-8bcc-14051b707821”
},
{
“parameters”: {
“promptType”: “define”,
“text”: “={\n "chatInput": "{{ $json.chatInput }}",\n "sessionId": "{{ $json.sessionId }}"\n}”,
“options”: {
“systemMessage”: “… the system will explicitly call the tool.”
}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 2,
“position”: [
-188,
-200
],
“id”: “478e1633-b037-4baf-b2fb-06db6e1455b9”,
“name”: “AI Agent”
},
{
“parameters”: {
“model”: {
“__rl”: true,
“value”: “gemini-2.5-pro”,
“mode”: “list”,
“cachedResultName”: “gemini-2.5-pro”
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“typeVersion”: 1.2,
“position”: [
-220,
20
],
“id”: “f1e5f725-044f-4ace-a025-18f7d5bb0718”,
“name”: “OpenAI Chat Model”,
“credentials”: {
“openAiApi”: {
“id”: “IFa6TA96EFxy19Hv”,
“name”: “OpenAi-gemini”
}
}
},
{
“parameters”: {},
“type”: “@n8n/n8n-nodes-langchain.memoryRedisChat”,
“typeVersion”: 1.5,
“position”: [
-100,
20
],
“id”: “fcde2e1c-a2a8-4f43-a8c3-c43b5f5c93a2”,
“name”: “Redis Chat Memory”,
“credentials”: {
“redis”: {
“id”: “efDK1mF6JOAIVnIa”,
“name”: “Redis account”
}
}
},
{
“parameters”: {
“descriptionType”: “manual”,
“toolDescription”: “Searches for world settings in the Airtable database based on a session ID.”,
“operation”: “search”,
“base”: {
“__rl”: true,
“value”: “app2WNRCt38vmKIgM”,
“mode”: “list”,
“cachedResultName”: “novel”,
“cachedResultUrl”: “Airtable”
},
“table”: {
“__rl”: true,
“value”: “tblqGqWAtVTZJ1SUi”,
“mode”: “list”,
“cachedResultName”: “world_settings”,
“cachedResultUrl”: “Airtable”
},
“filterByFormula”: “={session_id} = ‘{{ $json.sessionId }}’”,
“options”: {}
},
“type”: “n8n-nodes-base.airtableTool”,
“typeVersion”: 2.1,
“position”: [
20,
20
],
“id”: “30a13ff6-f311-4c53-88f4-33266029fb49”,
“name”: “search_world_settings”,
“notesInFlow”: true,
“retryOnFail”: true,
“credentials”: {
“airtableTokenApi”: {
“id”: “rmHyilyQL8KWNRwp”,
“name”: “Airtable Personal Access Token account”
}
},
“notes”: “Searches for world settings in the Airtable database based on a session ID.”
}
],
“pinData”: {},
“connections”: {
“When chat message received”: {
“main”: [
[
{
“node”: “AI Agent”,
“type”: “main”,
“index”: 0
}
]
]
},
“OpenAI Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Redis Chat Memory”: {
“ai_memory”: [
[
{
“node”: “AI Agent”,
“type”: “ai_memory”,
“index”: 0
}
]
]
},
“AI Agent”: {
“main”: [
]
},
“search_world_settings”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
}
]
]
}
},
“active”: false,
“settings”: {
“executionOrder”: “v1”
},
“versionId”: “272bf6bd-04cf-4250-8f4c-0c31587ec9a0”,
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “3c6c664071cc9f99a2744bd62c94f140b1161e6b76c2cd41c525715cf7c03b2d”
},
“id”: “eR4Lf6d47JXOKsDV”,
“tags”:
}
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Bad request - please check your parameters
Invalid JSON payload received. Unknown name “$schema” at ‘tools[0].function_declarations[0].parameters’: Cannot find field.
Information on your n8n setup
- n8n version: v1.98.1
- Database (default: SQLite): airtable
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: macos