Skip to main content
Glama

render_file

Render UI component files with full dependency resolution via Vite config or CDN fallback. Auto-detects framework and supports dark mode and Tailwind versions.

Instructions

Render a component file with full dependency resolution. Uses your project's Vite config to resolve imports, path aliases, CSS modules, and node_modules. Falls back to CDN-based rendering if Vite is unavailable. Auto-detects framework from file extension.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the component file
propsNoProps to pass to the component
widthNoViewport width (px)
heightNoViewport height (px)
darkModeNoRender with dark mode
tailwindVersionNoTailwind CSS version (3 or 4)3
projectRootNoProject root directory override (defaults to auto-detect from file path)
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description discloses key behaviors: uses Vite config, falls back to CDN, auto-detects framework. However, it omits details about side effects, authentication requirements, or performance implications, leaving gaps in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences long, front-loaded with the main purpose, and contains no unnecessary words. It is efficient but could be slightly more structured (e.g., bullet points for key details).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters and no output schema, the description covers core behavior but lacks details on return format, error handling, and edge cases. It is adequate for a moderately complex tool but not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all parameters. The description adds context about Vite and auto-detection but does not enhance understanding of individual parameters beyond what the schema provides. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Render a component file with full dependency resolution,' specifying the verb 'render', the resource 'component file', and adds the key differentiator 'full dependency resolution'. This distinguishes it from siblings like 'render_component' or 'screenshot_url' which may not handle dependencies.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for component files needing dependency resolution but does not provide explicit guidance on when to use this tool vs. siblings like 'render_component'. It mentions fallback behavior and auto-detection but lacks exclusions or alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/kamegoro/frameshot'

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