Categories

Defaults Deep

Apply deep default values using lodash _.defaultsDeep

Assign default values recursively for undefined properties. **Highlights:** - Uses lodash `_.defaultsDeep` - Applies defaults deeply to nested objects - Only fills in undefined properties **Example:** - Target: `{"a":{"b":1}}` - Source 1: `{"a":{"b":2,"c":3}}` - Result: `{"a":{"b":1,"c":3}}`

Enter the target JSON object

First source object

Optional source object

Optional source object

API Documentation

Request Endpoint

POST /en/api/tools/defaults-deep

Request Parameters

Parameter Name Type Required Description
targetObject textarea Yes Enter the target JSON object
source1 textarea Yes First source object
source2 textarea No Optional source object
source3 textarea No Optional source object

Response Format

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Text: Text

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-defaults-deep": {
      "name": "defaults-deep",
      "description": "Apply deep default values using lodash _.defaultsDeep",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=defaults-deep",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]