Raw Flarum API request
flarum_requestMake arbitrary HTTP requests (GET, POST, PATCH, PUT, DELETE) to any Flarum API endpoint for custom extension routes or non-JSON:API endpoints not covered by typed tools.
Instructions
Escape hatch: make an arbitrary request to any Flarum API endpoint, for anything not covered by the typed tools (custom extension routes, non-JSON:API endpoints, etc.). In read-only mode, non-GET methods are refused. Path is relative to the API root, e.g. "/discussions" or "/fof/gamification/ranks".
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": "flarum_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body (object), sent as JSON. | |
| path | Yes | API path relative to /api, e.g. "/users/1". | |
| query | No | Query parameters. | |
| method | No | HTTP method. | GET |