pub async fn execute_tool(
provider: &Provider,
tool: &Tool,
args: &HashMap<String, Value>,
keyring: &Keyring,
) -> Result<Value, HttpError>Expand description
Execute an HTTP tool call against a provider’s API.
Supports two modes:
- Location-aware (OpenAPI tools): Parameters are classified by
x-ati-param-locationmetadata in the input schema. Path params are substituted into the URL template, query params go to the query string, header params become request headers, and body params go to the JSON body. - Legacy (hand-written TOML tools): GET → all args as query params, POST/PUT/DELETE → JSON body.