Send raw API request
send_raw_requestSend an authenticated HTTP request to any PocketBase API endpoint. Covers custom routes or new features missing a dedicated tool, attaching the superuser token automatically and returning parsed JSON.
Instructions
Escape hatch: send an arbitrary authenticated HTTP request to any PocketBase API endpoint. Use this for endpoints not covered by a dedicated tool, custom routes added via hooks, or new API features. The Authorization header (superuser token) is attached automatically. path is relative to the server root and must start with '/api/...' (e.g. '/api/collections'). Returns the parsed JSON response.
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": {
"path": "<path>"
},
"name": "send_raw_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body for POST/PATCH/PUT. | |
| path | Yes | Request path, e.g. '/api/health' or '/api/collections/posts/records'. | |
| query | No | Query parameters as a key/value object. | |
| method | No | HTTP method (default GET). | |
| headers | No | Extra request headers. |