kdeps-tools-http_request
v1.2.0Make an HTTP request to a URL. Returns response status, headers, and body. Use for calling APIs, fetching web content, or interacting with external services. Requires: url. Optional: method (default GET), headers, data (JSON body), files (multipart uploads), timeout, failOnError, saveTo, retry, cache, connectionName, accountName, followRedirects, tls.
set tools / shelf tools
LLM context: ~489 tokens when loaded (prompt or tool definition)
Where it runs
Part of the tools set, used in workflow and agent mode. What the model is told about each built-in tool: its description, usage notes and parameters. kdeps runs the tool itself.
- the agent loop builds the request
- the tool definitions are sent to the modeltools/http_request
- the model calls a tool
- kdeps runs it
- the result goes back to the model
Loaded by: kdeps (agent loop), /update, /settings, kdeps run, kdeps install, kdeps list, kdeps uninstall, kdeps update
In the code: kdeps (agent loop)agent.RegisterBuiltinToolsagent.definedAs
Install
A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.
Pin a version with kdeps install tools/http_request@<version>.
Contents
Make an HTTP request to a URL. Returns response status, headers, and body. Use for calling APIs, fetching web content, or interacting with external services. Requires: url. Optional: method (default GET), headers, data (JSON body), files (multipart uploads), timeout, failOnError, saveTo, retry, cache, connectionName, accountName, followRedirects, tls.
| Parameter | Type | Description |
|---|---|---|
| accountName | string | Named account under the agent identity; resolved as Basic Auth |
| cache | object | Cache block: {ttl, key}. Presence enables response caching. Key defaults to the HTTP method and URL |
| connectionName | string | Named connection in ~/.kdeps/config.yaml supplying auth and proxy settings |
| data | object | Request body as JSON (for POST/PUT/PATCH) |
| failOnError | boolean | Treat a non-2xx response as an error instead of returning it. Default: false |
| files | object | Multipart form uploads: {field: file path}. Data entries become the text fields of the same form |
| followRedirects | boolean | Follow redirects. Leave unset to follow (default); false stops at the first 3xx |
| headers | object | HTTP headers as key-value pairs |
| method | string | HTTP method: GET, POST, PUT, DELETE, PATCH. Default: GET |
| retry | object | Retry block: {maxAttempts, backoff, maxBackoff, retryOn: [status codes]} |
| saveTo | string | Absolute path to stream a 2xx response body into, creating parent directories. Returns savedTo and bytes instead of the body |
| timeout | string | Request timeout, e.g. '30s'. Default: 30s |
| tls | object | TLS block: {insecureSkipVerify, certFile, keyFile, caFile} |
| url * | string | The URL to request |
version: 1.2.0
description: 'Make an HTTP request to a URL. Returns response status, headers, and body. Use for calling APIs, fetching web content, or interacting with external services. Requires: url. Optional: method (default GET), headers, data (JSON body), files (multipart uploads), timeout, failOnError, saveTo, retry, cache, connectionName, accountName, followRedirects, tls.'
parameters:
accountName:
type: string
description: Named account under the agent identity; resolved as Basic Auth
cache:
type: object
description: 'Cache block: {ttl, key}. Presence enables response caching. Key defaults to the HTTP method and URL'
connectionName:
type: string
description: Named connection in ~/.kdeps/config.yaml supplying auth and proxy settings
data:
type: object
description: Request body as JSON (for POST/PUT/PATCH)
failOnError:
type: boolean
description: 'Treat a non-2xx response as an error instead of returning it. Default: false'
files:
type: object
description: 'Multipart form uploads: {field: file path}. Data entries become the text fields of the same form'
followRedirects:
type: boolean
description: 'Follow redirects. Leave unset to follow (default); false stops at the first 3xx'
headers:
type: object
description: HTTP headers as key-value pairs
method:
type: string
description: 'HTTP method: GET, POST, PUT, DELETE, PATCH. Default: GET'
retry:
type: object
description: 'Retry block: {maxAttempts, backoff, maxBackoff, retryOn: [status codes]}'
saveTo:
type: string
description: 'Absolute path to stream a 2xx response body into, creating parent directories. Returns savedTo and bytes instead of the body'
timeout:
type: string
description: 'Request timeout, e.g. ''30s''. Default: 30s'
tls:
type: object
description: 'TLS block: {insecureSkipVerify, certFile, keyFile, caFile}'
url:
type: string
description: The URL to request
required: true
Versions
| Version | Published | Status |
|---|---|---|
| 1.2.0 | 10/21/2026 | active |
| 1.1.0 | 10/21/2026 | active |
| 1.0.0 | 10/11/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.2.0
- Published
- 10/11/2026