glim.sh

v1.3.0
sh.glim/glim Checked 4 days ago Published 16 days ago

Live web search and fetch plus Twitter, Reddit, GitHub, Amazon, YouTube, Telegram data.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

glim_twitter_get Fetch Tweet or User

Fetch a tweet or a user from one reference. A tweet URL (incl. handle-less /i/status/<id>) returns the tweet with full thread context, parent, and optional replies/quotes; a profile URL (https://x.com/<handle>) returns the user with recent tweets. Prefer full URLs - if you only have a numeric id, pass it as a quoted string. Returns a compact human-readable view by default; pass format='json' for full structured data.

ParameterTypeDescription
ref *stringTweet URL or profile URL. A tweet URL (incl. /i/status/<id>) returns the tweet + thread; a profile URL (https://x.com/<handle>) returns the user + recent tweets. Prefer full URLs - if you only have a…
cursorstringProfile refs only: pagination cursor from next_cursor
expand_urlsbooleanWhen true, auto-crawl entity URLs and attach crawled_content to tweets. Off by default: responses can grow by up to 4KB per expanded URL. Use glim_web_fetch(url) for targeted crawls instead.
formatstringOutput format. 'text' (default): compact human-readable view, fewer tokens. 'json': full structured data for machine parsing.
includearrayTweet refs only: also fetch 'replies' and/or 'quotes'
include_mentionsbooleanProfile refs only: include the mentions timeline
include_repliesbooleanProfile refs only: include replies in the timeline

glim_reddit_get Reddit Get

Fetch a Reddit post, subreddit, or user by ref. Posts return comments; subreddits and users return profile metadata plus recent activity.

ParameterTypeDescription
ref *stringPost ID or URL, subreddit ref (r/programming or reddit.com/r/programming), or user ref (u/spez or reddit.com/user/spez)
comment_depthintegerMax nesting depth (post refs only)
comment_limitintegerMax comments (post refs only)
comment_sortstringComment sort. Post refs only: subreddit/user listings always hydrate a fixed 2 top-level comments sorted by top.
cursorstringPagination cursor from a prior subreddit response's next_cursor
formatstringOutput format. 'text' (default): compact human-readable view, fewer tokens. 'json': full structured data for machine parsing.
include_commentsbooleanInclude recent comments for user refs
include_postsbooleanInclude recent posts for user refs
limitintegerMax subreddit posts (1-10), each with full content + top comments
sortstringListing post sort
timestringListing time range

glim_web_fetch Web Fetch

Fetch a single web page and extract clean content. Auto-tier server-side: handles SSR (Next.js, Nuxt, TikTok, Pinterest, YouTube), SPA shells, PDFs, paywall detection, residential-proxy escalation, and stealth profiles for TikTok / Instagram / Pinterest / YouTube. Returns clean markdown (default) with a YAML frontmatter header (url, outcome, rendered, total_chars). The optional rendered field is true when a real browser produced the content and absent when unknown. JSON keeps its original body and exposes glim/rendered in result _meta. Read 'outcome' to classify the result (success | teaser |…

ParameterTypeDescription
url *stringURL to fetch
formatstringOutput format. 'markdown' (default) clean article text; 'html' raw cleaned HTML; 'json' the structured SSR blob (TikTok / Pinterest / YouTube) instead of article text.
selectorstringCSS selector to scope the result. An anchor-id selector (e.g. a docs anchor like '#usage') that lands on a heading expands to its whole section; other selectors return the matched elements themselves.

glim_github_get GitHub Get

Fetch GitHub data from a single ref. GitHub URL or 'owner/repo' shorthand. A repo URL or owner/repo returns metadata + README; /pull/N -> PR (with comments + changed files), /issues/N -> issue, /discussions/N -> discussion (with threaded replies), /blob/<ref>/<path> -> file (raw.githubusercontent.com URLs work too), /tree/<ref>[/<path>] -> file tree (optionally scoped to a subdirectory), /commit/<sha> -> one commit with diff, /commits[/<ref>/<path>] -> history (optionally for one file), /branches, /releases (or /releases/tag/<tag> | /releases/latest -> one release), /topics/<name> -> top repos…

ParameterTypeDescription
ref *stringGitHub URL or 'owner/repo' shorthand. A repo URL or owner/repo returns metadata + README; /pull/N -> PR (with comments + changed files), /issues/N -> issue, /discussions/N -> discussion (with threaded…
formatstringOutput encoding. 'text' (default): compact human-readable text, fewer tokens (file returns raw content). 'json': machine-readable JSON.
pageintegerPage number
per_pageintegerResults per page

glim_amazon_get Amazon Product

Fetch Amazon product detail from a full product URL (the marketplace - com|co.uk|de|fr|es|it - is read from the URL host; pass the url field from a glim_amazon_search result, or any /dp/<ASIN> page URL). Returns title, buybox price (gross + VAT-excluded net), stock, delivery estimate, rating, top reviews, and an 'other sellers' summary (count + floor price). Text mode (default) returns a compact view with offers_summary {buybox, lowest_new, lowest_used} - pass format='json' for full structured data incl. the offers[] listing and images.

ParameterTypeDescription
ref *stringFull Amazon product URL - pass the `url` from a glim_amazon_search result, or any /dp/<ASIN> product page URL. The URL carries the marketplace (amazon.de, amazon.co.uk, ...), so no separate region is…
formatstringOutput format. 'text' (default): compact human-readable view, fewer tokens. 'json': the same product as machine-readable JSON, plus the fields text omits: the full `offers[]` list (text summarizes it)…

glim_youtube_get YouTube Transcript

Fetch a YouTube video transcript from a video URL or 11-char id. The transcript is cleaned server-side: deduplicated, tags/HTML stripped, with coarse [m:ss] timestamps - roughly a tenth the size of the raw captions. Default format='text' returns it inline (when it fits ~40K chars / ~10K tokens) so a single call gives you the text directly; long-form videos fall back to a download_url note. Pass format='json' for the same transcript plus transcript metadata (video_id, canonical url, language, origin, size) and a presigned download_url - for batch/programmatic use. Default origin='uploader_provi…

ParameterTypeDescription
ref *stringYouTube video URL or 11-char video id (e.g. https://youtu.be/dQw4w9WgXcQ, https://www.youtube.com/watch?v=dQw4w9WgXcQ, or dQw4w9WgXcQ)
formatstringOutput format. 'text' (default): the cleaned transcript inline as plain text (omitted with a download_url note when it exceeds the ~40K-char inline cap). 'json': the same cleaned transcript plus trans…
language_codestringISO 639-1 language code (e.g. 'en', 'de', 'fr')
originstring'uploader_provided' for human captions (default), 'auto_generated' for YouTube auto-captions.

glim_telegram_get Telegram Get

Fetch a public Telegram channel or post - no account or API key involved. Channel refs (@handle, handle, t.me URL) return channel info + recent posts newest-first with views, reactions, media, polls, and link previews; pass query to search within the channel's full history, and page older posts with before=<next_cursor>. Post refs (t.me/<channel>/<id>) return that post plus its most recent discussion comments. Media URLs are Telegram CDN links that expire within hours - fetch promptly, never store. Only channels with a public web preview work (most public channels); private channels and groups…

ParameterTypeDescription
ref *stringPublic channel (@handle, handle, or t.me/<channel> URL) or post (t.me/<channel>/<id> or '<channel>/<id>')
afterstringReturn posts newer than this message id
beforestringReturn posts older than this message id (from next_cursor)
commentstringPost refs: center the comment window on this comment id
formatstringOutput format. 'text' (default): compact human-readable view, fewer tokens. 'json': full structured data for machine parsing.
include_commentsbooleanPost refs: include discussion comments (Telegram serves a small window of the most recent; walk older ones via comment=<oldest returned id>)
limitintegerMax posts for channel refs (1-100)
querystringSearch within the channel's full history (channel refs only)