merge_json
Combine two JSON objects into one using a deep or shallow merge strategy. Choose between recursive merging or top-level key assignment.
Instructions
Merge two JSON objects with deep or shallow strategy.
Parameters:
json_a — First JSON string.
json_b — Second JSON string.
strategy — 'deep' (default) or 'shallow'.
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_a": "<json_a>",
"json_b": "<json_b>"
},
"name": "merge_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_a | Yes | ||
| json_b | Yes | ||
| strategy | No | deep |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |