get_file_lines
Inspect specific lines in a file with optional context lines. This tool is useful for verifying line content before making edits.
How to use it
get_file_lines is exposed by the MCP Edit File Lines MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_file_lines tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL MCP EDIT FILE LINES LISTINGOther tools in MCP Edit File Lines (3)
Apply changes from a previous dry run of editfilelines. This tool provides a two-step editing process for safety. Here is an example workflow:
Make line-based edits to a file using string or regex pattern matching. Each edit can:
Search a file for text patterns or regular expressions to find specific line numbers and their surrounding context. This tool is particularly useful for locating the exact lines you want to edit with editfilelines.