Skip to main content
Glama

LSP Tools MCP Server

by rajnaveen344

find_regex_position

Locate regex pattern matches in a file with precise line and column positions. Supports absolute file paths and returns detailed match data for text analysis and LSP-like functionality.

Instructions

Find the positions (line and column) of regex pattern matches in a file. Returns an array of matches with their positions. Line and column numbers are 0-indexed (first line is 0). Each match includes: match (matched text), line (starting line), column (starting column), endLine (ending line), and endColumn (ending column, exclusive). IMPORTANT: The path parameter must be an absolute path. Relative paths are not supported.

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to the file to search in. Relative paths are not supported.
regexYesRegular expression pattern to search for

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "path": { "description": "Absolute path to the file to search in. Relative paths are not supported.", "type": "string" }, "regex": { "description": "Regular expression pattern to search for", "type": "string" } }, "required": [ "path", "regex" ], "type": "object" }

Other Tools from LSP Tools 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/rajnaveen344/lsp-tools-mcp'

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