Categories

Find Key

Find the first matching key using lodash _.findKey

Find the first key whose value matches a predicate. **Highlights:** - Uses lodash `_.findKey` - Supports property, matchesProperty, or matches object predicates - Returns the first matching key or null **Example:** - Object: `{"a":{"active":false},"b":{"active":true}}` - Predicate Type: `Property` - Property Name: `active` - Result: `"b"`

Enter a JSON object

Truthy property name when using property predicate

Property path for matchesProperty

JSON value to match

JSON object to match

API Documentation

Request Endpoint

POST /en/api/tools/find-key

Request Parameters

Parameter Name Type Required Description
objectInput textarea Yes Enter a JSON object
predicateType select No -
predicateProperty text No Truthy property name when using property predicate
matchPath text No Property path for matchesProperty
matchValue textarea No JSON value to match
matchObject textarea No JSON object to match

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-find-key": {
      "name": "find-key",
      "description": "Find the first matching key using lodash _.findKey",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=find-key",
      "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]