query-graphql
Execute GraphQL queries with custom variables and headers to interact with GraphQL endpoints and retrieve structured data from APIs.
Instructions
Query a GraphQL endpoint with the given query and variables. Optionally pass headers (e.g., for Authorization).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
headers | No | Optional JSON string of headers to include, e.g., {"Authorization": "Bearer ..."} | |
query | Yes | ||
variables | No |
Input Schema (JSON Schema)
{
"properties": {
"headers": {
"description": "Optional JSON string of headers to include, e.g., {\"Authorization\": \"Bearer ...\"}",
"type": "string"
},
"query": {
"type": "string"
},
"variables": {
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}