reshape_json
Reshape JSON with a declarative mapping (path, cast, default, required, each). Optional outputSchema gate: the output is validated and rejected with precise errors on violation. No LLM, nothing stored.
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": {
"input": "<input>",
"mapping": "<mapping>"
},
"name": "reshape_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | any JSON payload | |
| mapping | Yes | fields: {outKey: {path, cast?, default?, required?, each?} | {const}} | |
| outputSchema | No | JSON Schema (draft 2020-12) the output must satisfy |