save_captured_request
Document a real request captured by a tunnel (get its id from list_requests). If an endpoint already covers the route, the response is added to it as an example; otherwise an endpoint is created from the request. Credentials, cookies and signatures are replaced by {{variables}} and only JSON bodies are kept. A response already saved as an example is not duplicated. Use it to document webhooks and calls you have only seen in traffic.
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": {
"collection_id": "<collection_id>",
"tunnel": "<tunnel>",
"request_id": "<request_id>"
},
"name": "save_captured_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | With method: route path of the endpoint, e.g. /v1/charges/:id. | |
| folder | No | Folder for a newly created endpoint, created by name if missing. | |
| method | No | With path: the endpoint that should receive the example. | |
| tunnel | Yes | Subdomain of the tunnel that captured the request. | |
| request_id | Yes | Id of the captured request, from list_requests. | |
| endpoint_id | No | Add the example to this endpoint instead of matching by route. Alternative to method + path. | |
| collection_id | Yes | Id from list_api_collections. |