Skip to main content
Glama

Code Screenshot Generator

screenshot_from_file

Generate syntax-highlighted code screenshots from file paths with line selection and theme customization for documentation and sharing purposes.

Instructions

Screenshot code directly from a file path, with optional line range selection. Auto-detects language from file extension.

Input Schema

NameRequiredDescriptionDefault
endLineNoEnd line number (optional)
filePathYesPath to the code file
startLineNoStart line number (1-indexed, optional)
themeNoColor theme (dracula, nord, monokai, github-light, github-dark)

Input Schema (JSON Schema)

{ "properties": { "endLine": { "description": "End line number (optional)", "type": "number" }, "filePath": { "description": "Path to the code file", "type": "string" }, "startLine": { "description": "Start line number (1-indexed, optional)", "type": "number" }, "theme": { "description": "Color theme (dracula, nord, monokai, github-light, github-dark)", "enum": [ "dracula", "nord", "monokai", "github-light", "github-dark" ], "type": "string" } }, "required": [ "filePath" ], "type": "object" }

Other Tools from Code Screenshot Generator

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/MoussaabBadla/code-screenshot-mcp'

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