Skip to main content
Glama

Tree-Hugger-JS MCP Server

by qckfx

find_all_pattern

Identify and extract all nodes in JavaScript/TypeScript code matching a specified pattern for audits, debugging, or analysis. Use to locate API calls, error messages, React hooks, or SQL queries efficiently.

Instructions

Find all nodes matching the specified pattern. Use for comprehensive analysis when you need all matches.

Examples: • Audit all functions: find_all_pattern('function') • Find all TODO comments: find_all_pattern('comment[text*="TODO"]') • Security audit: find_all_pattern('call[text*="eval"]') • Performance review: find_all_pattern('call[text*="console.log"]') to find debug logs • API usage: find_all_pattern('call[text*="fetch"]') to find all API calls • React hooks: find_all_pattern('call[text*="use"]') for hooks usage • Error patterns: find_all_pattern('string[text*="error"]') for error messages • Database queries: find_all_pattern('string[text*="SELECT"]') for SQL • Event handlers: find_all_pattern('function[text*="onClick"]')

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of matches to return (default: no limit). Use for large codebases.
patternYesPattern to match: 'function', 'call[text*="console.log"]', 'string[text*="TODO"]'

Input Schema (JSON Schema)

{ "properties": { "limit": { "description": "Maximum number of matches to return (default: no limit). Use for large codebases.", "type": "number" }, "pattern": { "description": "Pattern to match: 'function', 'call[text*=\"console.log\"]', 'string[text*=\"TODO\"]'", "type": "string" } }, "required": [ "pattern" ], "type": "object" }

Other Tools from Tree-Hugger-JS MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/qckfx/tree-hugger-js-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server