merge_json
Merge two JSON objects into one, with the second string taking precedence. Optionally deep merge nested objects.
Instructions
Merge two JSON objects.
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_string1": "<json_string1>",
"json_string2": "<json_string2>"
},
"name": "merge_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_string1 | Yes | First JSON string | |
| json_string2 | Yes | Second JSON string (takes precedence) | |
| deep | No | Deep merge nested objects (default: True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |