vex_fragments
Manage reusable GraphQL fragments by listing, retrieving, saving with cached-schema validation, and deleting named selection sets.
Instructions
Manage reusable GraphQL fragments (named selection sets).
Actions:
list: List saved fragments, optionally filtered by on-clause type.
get: Return the raw SDL of a saved fragment.
save: Persist a fragment definition, validating its selection against the cached schema before writing.
delete: Delete a saved fragment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "vex_fragments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Target env name (default: VEX_ENV, else active). | |
| sdl | No | Full SDL: `fragment Name on Type { ... }`. | |
| name | No | Fragment name (CamelCase). | |
| type | No | Filter to fragments whose on-clause matches this type name. | |
| action | Yes | Operation to perform; see description for valid values. | |
| overwrite | No | Replace an existing fragment with the same name. Default false. |