Send a request with a body
web_access_requestSend a POST, PUT or PATCH request with a JSON or text body to any URL, letting you call write-only APIs, GraphQL endpoints, or search backends that reject GET reads.
Instructions
Send a POST, PUT or PATCH request with a body to a caller-specified URL, through String's Web Access API. It works like web_access_fetch, but for calls that submit data rather than read a page: a JSON API that only accepts POST, a GraphQL endpoint, a search backend that takes a body.
Use web_access_fetch instead whenever you only need to read a page. This tool sends a body to the destination rather than reading it, so use it only for a request the user actually asked for.
Usage Example:
{ "url": "https://api.example.com/search", "method": "POST", "body": { "q": "widgets" } }Optional parameters (omit unless you need them):
format—json(default, a{ statusCode, headers, data }envelope with the destination's status and headers),raw(the destination's verbatim body), ormarkdown(the body as clean text).headers— custom request headers to forward (max 50): a content type, a token the user supplied, a cookie.countryCode— ISO 3166-1 alpha-2 (e.g. "US"): the request reaches the destination from that country.solveCaptcha— defaults true; set false to fail fast instead of spending effort solving a challenge.
executeJS and browser actions are not available here: both run a browser session, which is always a GET.
Returns: the JSON envelope by default; the verbatim body or Markdown when format is set accordingly.
Requests must comply with destination policy, robots directives, rate limits, and access controls.
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": {
"url": "<url>",
"method": "<method>"
},
"name": "web_access_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The endpoint the request goes to, as its full web address. | |
| body | No | Request body. A string is sent as-is; an object is JSON-stringified. | |
| format | No | How the destination's response comes back: 'json' (default) for a { statusCode, headers, data } envelope, which suits most calls that send a body; 'raw' for the verbatim body alone; 'markdown' for the body as clean text. | json |
| method | Yes | HTTP method: POST, PUT or PATCH. GET is not accepted here — use web_access_fetch to read a page. | |
| headers | No | Request headers to send, each name to its value (max 50): a content type, a token the user supplied, a cookie. | |
| countryCode | No | ISO 3166-1 alpha-2 country code, e.g. 'US': the request reaches the destination from that country. | |
| solveCaptcha | No | Whether to attempt captcha solving. Defaults to true server-side; set false to fail fast on challenges. |