Read through a secret
use_secretSend a GET or HEAD request with a secret injected as a header, and return the response. The secret value is never returned to the agent — it is decrypted and used server-side only. Reads the remote API; it cannot change anything there, because only safe methods are accepted. The URL is chosen by the caller, so the target is whichever API the secret belongs to — see that API's own documentation for paths. Requires secrets:read or full permission. Example: use_secret({secret_name: 'OPENAI_API_KEY', url: 'https://api.openai.com/v1/models'}) sends GET with 'Authorization: Bearer '. Use list_secrets to discover names, use_secret_write to send POST/PUT/PATCH/DELETE, and store_secret or rotate_secret to change a stored value. Pass playbook_id as the UUID or GUID of the playbook this call should target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to send the HTTP request to | |
| method | No | HTTP method (default: GET). For POST/PUT/PATCH/DELETE use use_secret_write. | |
| timeout_ms | No | Request timeout in milliseconds (default: 30000, max: 60000) | |
| header_name | No | Header name to inject the secret into (default: Authorization) | |
| playbook_id | Yes | UUID or GUID of the target playbook | |
| secret_name | Yes | Name of the secret to use (e.g. OPENAI_API_KEY) | |
| extra_headers | No | Additional headers (e.g. {"Accept": "application/json"}) | |
| header_prefix | No | Prefix before the secret value (default: 'Bearer '). Use empty string for raw value. |