utils:env_jq
utils:env_jq¶
Define local environment variables from JSON
Uses jq expressions to get a value from a local json and sets it in the env var.
Example:
{
"tool": "utils:env_jq",
"parameters": {
"input_json": "api_response.json",
"jq": ".token",
"var_name": "MY_API_AUTH_TOKEN"
}
},
...
{
"tool": "utils:echo",
"parameters": {
"text": "{MY_API_AUTH_TOKEN}"
}
}
Parameter | Properties | Default | Type | Choice | Description |
---|---|---|---|---|---|
input_json | required | ||||
jq | required | ||||
var_name | required |