Categories

Has Path

Check if a path exists using lodash _.has

Check if a property path exists on an object or array. **Highlights:** - Uses lodash `_.has` - Checks own properties only - Returns true or false **Example:** - Input: `{"user":{"name":"Ada"}}` - Path: `user.name` - Result: `true`

Enter a JSON object or array

Property path to check

API Documentation

Request Endpoint

POST /en/api/tools/has-path

Request Parameters

Parameter Name Type Required Description
inputData textarea Yes Enter a JSON object or array
path text Yes Property path to check

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-has-path": {
      "name": "has-path",
      "description": "Check if a path exists using lodash _.has",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=has-path",
      "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]