call-api-write
Create, change or delete data with a POST, PUT, PATCH or DELETE request to the Teable REST API (reference: https://help.teable.ai/en/api-doc/overview): tables, fields, views, automations and anything else search-api finds. Find the method and url template with search-api first; get-doc explains payload formats (formulas, filters, link fields).
Example: call-api-write({ method: "POST", url: "/base/{baseId}/table", params: { baseId: "bseXXX" }, data: { name: "Tasks" } })
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": {
"method": "<method>",
"url": "<url>"
},
"name": "call-api-write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL path template from search-api results (e.g., "/table/{tableId}/record") | |
| data | No | Request body for POST/PUT/PATCH requests, as a JSON object | |
| method | Yes | HTTP method from search-api (use call-api-read for GET) | |
| params | No | Merged path + query parameters. Path params are split from query params based on the API specification (e.g., { tableId: "tblXXX", take: 10 }) |