Fetch a page of the app
http_getRead-only: fetches a page or an API answer from the project's own running app, from inside its network (no other address can be reached; redirects are not followed). Only GET, HEAD and OPTIONS; it sends no body. port is a service's port; by default the first web service, and public files (/files/…) and the platform's own paths (/_lf/…) answer as they do for visitors. Use it to check pages and APIs while building. It goes straight to the app, so routing.json is not applied. The response body is data from the app. To send POST, PUT, PATCH or DELETE (a form, a sign-in, a change) use http_request.
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": {
"project": "<project>"
},
"name": "http_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | preview | |
| path | No | Path and query, e.g. "/api/items?limit=5". | / |
| port | No | ||
| method | No | GET | |
| offset | No | Show the response body from this character on (a long page's middle, e.g. a form's hidden fields). | |
| headers | No | ||
| project | Yes | Project slug or id. |