Tool tree
Fix invalid JSON (trailing commas, single quotes, comments), validate parse errors with line/column, and query data with jq filters. 100% client-side.
Implementation
gradeNot graded
gradeNot graded
lint_jsonAction
Validate JSON and rewrite it as formatted JSON with 2-space indentation.
View tool JSON
{
"name": "lint_json",
"kind": "act",
"impl": "imperative",
"description": "Validate JSON and rewrite it as formatted JSON with 2-space indentation.",
"inputSchema": {
"type": "object",
"properties": {
"json": {
"type": "string",
"description": "Optional JSON string. If omitted, the current editor content is used."
}
},
"additionalProperties": false
},
"page": "/"
}repair_jsonAction
Repair malformed JSON with JSONRepair, then return formatted JSON.
View tool JSON
{
"name": "repair_json",
"kind": "act",
"impl": "imperative",
"description": "Repair malformed JSON with JSONRepair, then return formatted JSON.",
"inputSchema": {
"type": "object",
"properties": {
"json": {
"type": "string",
"description": "Optional malformed JSON string. If omitted, the current editor content is used."
}
},
"additionalProperties": false
},
"page": "/"
}minify_jsonAction
Remove whitespace from valid JSON and return a compact string.
View tool JSON
{
"name": "minify_json",
"kind": "act",
"impl": "imperative",
"description": "Remove whitespace from valid JSON and return a compact string.",
"inputSchema": {
"type": "object",
"properties": {
"json": {
"type": "string",
"description": "Optional JSON string. If omitted, the current editor content is used."
}
},
"additionalProperties": false
},
"page": "/"
}apply_jq_filterAction
Apply a jq-style filter to JSON using the page’s jq-lite engine.
View tool JSON
{
"name": "apply_jq_filter",
"kind": "act",
"impl": "imperative",
"description": "Apply a jq-style filter to JSON using the page’s jq-lite engine.",
"inputSchema": {
"type": "object",
"properties": {
"json": {
"type": "string",
"description": "Optional JSON string. If omitted, the current editor content is used."
},
"query": {
"type": "string",
"description": "jq-style query such as .users, .[], map(.name), or select(.age > 18)."
}
},
"required": [
"query"
],
"additionalProperties": false
},
"page": "/"
}