Skip to main content
Glama

upload_asset_from_url

Import files from web URLs directly into LightCMS as assets. Fetch images or documents from public URLs and store them without local downloads. Specify serve paths or use auto-generated filenames.

Instructions

Fetch a public URL and store it as a LightCMS asset. Useful for importing images or files from the web without downloading them locally first.

Example: {"url": "https://example.com/logo.png", "serve_path": "/assets/logo.png", "description": "Site logo"}

If serve_path is omitted, the filename is derived from the URL. Returns id, serve_path, mime_type, and size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionNoOptional description
serve_pathNoURL path where asset will be served (e.g. /assets/logo.png). Auto-derived from URL filename if omitted.
urlYesPublic URL of the file to fetch (must be http or https),required

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/jonradoff/lightcms'

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