Skip to main content
Glama

Moatless MCP Server

by TwT23333

view_code

Extract and display specific code sections by selecting file paths, line numbers, or span IDs for targeted analysis and context retrieval.

Instructions

View specific code sections with context

Input Schema

NameRequiredDescriptionDefault
end_lineNoEnding line number (1-indexed)
file_pathYesPath to the file to view
span_idsNoList of span IDs to view (class names, function names, etc.)
start_lineNoStarting line number (1-indexed)

Input Schema (JSON Schema)

{ "properties": { "end_line": { "description": "Ending line number (1-indexed)", "type": "integer" }, "file_path": { "description": "Path to the file to view", "type": "string" }, "span_ids": { "description": "List of span IDs to view (class names, function names, etc.)", "items": { "type": "string" }, "type": "array" }, "start_line": { "description": "Starting line number (1-indexed)", "type": "integer" } }, "required": [ "file_path" ], "type": "object" }
Install Server

Other Tools from Moatless 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/TwT23333/mcp'

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