Skip to main content
Glama
lin2000wl
by lin2000wl

replace_lines

Replace specific line ranges in files after verifying them with read_file, enabling precise code modifications in Serena MCP Server's coding toolkit.

Instructions

Replaces the given range of lines in the given file. Requires that the same range of lines was previously read using the read_file tool to verify correctness of the operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
relative_pathYesThe relative path to the file.
start_lineYesThe 0-based index of the first line to be deleted.
end_lineYesThe 0-based index of the last line to be deleted.
contentYesThe content to insert.

Latest Blog Posts

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/lin2000wl/Serena-cursor-mcp'

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