validate_json
Check if a string contains valid JSON without modifying it, so you can catch syntax errors before parsing or processing.
Instructions
Check whether a string is valid JSON without modifying it.
Args: json_text: The text to validate.
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": {
"json_text": "<json_text>"
},
"name": "validate_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_text | Yes |