Categories

Assign Object

Assign source properties to a target object using lodash _.assign

Assign own enumerable properties from sources to the target object. **Highlights:** - Uses lodash `_.assign` - Later sources override earlier ones - Returns the merged object **Example:** - Target: `{"a":1}` - Source 1: `{"b":2}` - Source 2: `{"a":3}` - Result: `{"a":3,"b":2}`

Enter the target JSON object

First source object

Optional source object

Optional source object

API Documentation

Request Endpoint

POST /en/api/tools/assign-object

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-assign-object": {
      "name": "assign-object",
      "description": "Assign source properties to a target object using lodash _.assign",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=assign-object",
      "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]