vex_mutate
Execute a raw GraphQL mutation against the Vendure Admin API, with optional variables and Upload-scalar file uploads mapped from local paths to dotted variable keys.
Instructions
Execute a raw GraphQL mutation. Supports Upload-scalar file uploads via files.
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": {
"mutation": "<mutation>"
},
"name": "vex_mutate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Target env name (default: VEX_ENV, else active). | |
| files | No | For Upload-scalar variables: map of dotted variable path to local file path, e.g. {"input.0.file": "./logo.png"}. | |
| mutation | Yes | GraphQL mutation string | |
| variables | No | Variables for the GraphQL mutation |