HTTP Requests Tools
The HTTP Requests tools let your agent call any external API — fetch data, create a record, update something, or delete it. There are four tools, one per HTTP method:
- Requests Get — read data
- Requests Post — create data
- Requests Put — update data
- Requests Delete — remove data
They all work the same way; the difference is the HTTP verb (and whether they send a body). Pick the one that matches what the API expects.
These tools let an agent decide when and how to call an API during its reasoning. If you instead want a fixed, deterministic API call as a graph step, use the HTTP node.
Adding it to a flow
In the Tool node's tool picker, choose Requests Get / Post / Put / Delete, then set the URL and (optionally) a schema that tells the agent which parameters it can use.
Inputs
All four tools share these fields:
| Parameter | Description | Required |
|---|---|---|
| URL | The endpoint to call. Supports variables (e.g. {{$flow.state.customerId}}). | Yes |
| Name | The tool name the agent sees. Defaults to requests_get, requests_post, etc. | No |
| Description | Tells the agent when to use this tool. | No |
| Headers | JSON of request headers, e.g. an Authorization bearer token. | No |
| Max Output Length | Trims long responses (default 2000). Remove it to return the full response. | No |
Get and Delete additionally have:
| Parameter | Description | Required |
|---|---|---|
| Query Params Schema | Describes the available query/path parameters so the agent can figure out which to send. | No |
Post and Put additionally have:
| Parameter | Description | Required |
|---|---|---|
| Body | A fixed JSON body. If set, it overrides whatever body the agent would generate. | No |
| Body Schema | Describes the available body fields so the agent can build a valid request. | No |
The Query Params Schema and Body Schema don't restrict the URL — they teach the agent what each parameter means so it can fill the right values. Example schema entry:
{
"limit": {
"type": "string",
"in": "query",
"description": "Limit the number of items to return. ?limit=10"
}
}
Outputs
Each tool returns the API's response (trimmed to Max Output Length). It's a single-output tool — the flow continues to the next node. Store the response in flow state or pull a value out of it with the JSON Path Extractor.
Example
Look up an order by id
- Add a Tool node with Requests Get.
- Set the URL to
https://api.example.com/orders/{id}and add a Query Params Schema describingid. - Add an
Authorizationheader with your API token.
When the agent needs order details, it calls the tool with the right id, and the JSON response comes
back for the next step.
Tips
- Keep secrets in headers, not the URL. Put API keys in the Headers field.
- Use variables in the URL to target the right record, e.g.
{{$flow.state.customerId}}. - Set a Body on Post/Put only when you want a fixed payload — otherwise let the agent build the body from the Body Schema.
- Raise Max Output Length (or remove it) if the API returns large payloads you need in full.
Related
- HTTP node — a fixed API call as a deterministic step
- JSON Path Extractor — pull one value out of an API response
- Custom Tool — wrap complex API logic in your own tool
- Variables · Flow state