json_validate
Validate JSON text and pinpoint syntax errors with the exact line and column, returning the top-level shape on success.
Instructions
Check whether a string is valid JSON. On failure returns the parser message plus the computed line and column of the error. On success returns the top-level shape. Distinguishes valid-but-empty-object from invalid.
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": {
"text": "<text>"
},
"name": "json_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The JSON text to validate | |
| describeTopLevel | No | Include top-level keys or array length (default true) |