extract_json_value
Extracts a specific value from a JSON response using dot-notation paths, enabling API security tests to capture dynamic resource IDs for chained vulnerability detection.
Instructions
Extracts a specific value from a JSON response using dot-notation path. Essential for chained attacks where the LLM needs to grab a dynamically created resource ID from a POST response (e.g. 'data.id' → 42).
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": {
"response_json": "<response_json>",
"json_path": "<json_path>"
},
"name": "extract_json_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_path | Yes | ||
| response_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |