Skip to main content
Glama

Serena

by oraios

insert_at_line

Inserts specified content at a designated line in a file, shifting existing content downward. Ideal for targeted edits within large codebases or precise modifications to file structures.

Instructions

Inserts the given content at the given line in the file, pushing existing content of the line down. In general, symbolic insert operations like insert_after_symbol or insert_before_symbol should be preferred if you know which symbol you are looking for. However, this can also be useful for small targeted edits of the body of a longer symbol (without replacing the entire body).

Input Schema

NameRequiredDescriptionDefault
contentYesThe content to be inserted.
lineYesThe 0-based index of the line to insert content at.
relative_pathYesThe relative path to the file.

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "The content to be inserted.", "title": "Content", "type": "string" }, "line": { "description": "The 0-based index of the line to insert content at.", "title": "Line", "type": "integer" }, "relative_path": { "description": "The relative path to the file.", "title": "Relative Path", "type": "string" } }, "required": [ "relative_path", "line", "content" ], "title": "applyArguments", "type": "object" }

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/oraios/serena'

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