Evaluate SpEL expression
evaluate_expressionEvaluates SpEL expressions against a Spinnaker pipeline execution context to inspect variables, stage outputs, and computed values for debugging, returning JSON while blocking unsafe patterns.
Instructions
Evaluate a Spring Expression Language (SpEL) expression against a pipeline execution context. Use this to inspect pipeline variables, stage outputs, or computed values during debugging. Dangerous patterns (reflection, class instantiation) are blocked for security. Returns the evaluated expression result as JSON.
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": {
"execution_id": "<execution_id>",
"expression": "<expression>"
},
"name": "evaluate_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | SpEL expression in ${...}, e.g. ${trigger.parameters.tag} or ${#stage('Deploy').status} | |
| execution_id | Yes | Pipeline execution ID to evaluate against |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of records in items. | |
| items | No | The records, when Gate answered with a list. |