smolagents-surface
Surface checks a short link before your agent opens it. The answer is fetch or skip. It never returns the page. A hop or a 1×1 pixel counts the same way, with no install. Free for the first million requests a month. https://nova-otter-delta-cloud.grok.me
This package gives smolagents agents that check as one ready-made tool: surface_preflight.
Surface by Canada Site Ops. Ontario, Canada.
This package also ships an agent skill at src/smolagents_surface/skills/surface-preflight/SKILL.md. Skill installers that scan Python packages will find a keyed init-then-preflight recipe.
Get a free API key in about 10 seconds
No email, no card. Then set SURFACE_KEY or SURFACE_API_KEY. The tool sends it as Authorization: Bearer <key>.
KEY=$(curl -s -X POST https://nova-otter-delta-cloud.grok.me/v1/keys | python3 -c "import sys,json; print(json.load(sys.stdin)['key'])")
export SURFACE_KEY="$KEY"
curl -s -H "Authorization: Bearer $KEY" "https://nova-otter-delta-cloud.grok.me/v1/preflight?url=https://youtu.be/jNQXAC9IVRw"
That is one copy-paste: it mints a free key and makes the first keyed preflight. The answer is fetch or skip. You can also set SURFACE_API_KEY to the same value.
A key gets its own million free requests a month. The tool also runs without a key on a shared demo limit.
Check a link with the key you just minted
python -m surfaceapi init
python -m surfaceapi preflight https://youtu.be/jNQXAC9IVRw
The first command writes .env. The second reads that key and calls POST /v1/preflight. The answer is fetch or skip.
Install
pip install smolagents-surface
from smolagents import CodeAgent
from smolagents_surface import surface_preflight
agent = CodeAgent(tools=[surface_preflight], model=model)
The tool returns next: fetch or next: skip, plus where the link really goes (unwraps t.co, bit.ly, lnkd.in, youtu.be). It never downloads the page. On any error it answers skip.
Prefer MCP?
Mint a key first, then paste this into your MCP settings (tool preflight_url):
{
"mcpServers": {
"surface": {
"type": "http",
"url": "https://nova-otter-delta-cloud.grok.me/mcp",
"headers": {
"Authorization": "Bearer REPLACE_WITH_YOUR_KEY"
}
}
}
}
Also listed