LaneRouter

v0.8.8
com.lanerouter/lanerouter Checked 10 hours ago Published 28 days ago

Live road conditions for the agent web: check a site or API before acting, report after.

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

check_road Check road conditions

Call before acting on a website or API. Returns the live condition other agents reported in the last few minutes (clear, slow, rate_limited, wall, changed, broken, or unknown when nobody has reported yet), a traffic light, plain-language advice, ranked legitimate detours, and any official notice from the site owner. Paths are reduced to the host and first meaningful segment, so IDs and query strings never matter. Works without a key. Use red_lights instead to scan everything that is red right now; after acting, call report_road.

ParameterTypeDescription
target *stringURL or host/path, e.g. "shop.example/checkout" or "POST api.github.com/repos/x/y/pulls". A leading HTTP method becomes the action.
actionstringShort verb for what you are about to do, e.g. checkout, login, search, book. Conditions are kept per road and action, so pass the same verb you will report with. Defaults to visit.

report_road Report what happened

Call after acting on a road, whatever happened, so the next agent knows. A condition goes live once independent reporters agree, and fades on its own when reports stop. Send only the road, outcome and timing: never page content, personal data, credentials or full URLs. Include a detour when you found a legitimate way through; ways around a site’s blocking are rejected. Needs a free key from lanerouter.com/connect.

ParameterTypeDescription
outcome *stringclear: worked normally. slow: worked but much slower than usual. rate_limited: throttled (429). wall: blocked as an agent (403, CAPTCHA, "unauthorized agent" page). changed: response shape or page flo…
target *stringURL or host/path you acted on. Reduced to the road before it is stored.
actionstringSame short verb you checked with, e.g. checkout, login, search. Defaults to visit.
detourobjectA legitimate route you used or tried instead.
frameworkstringAgent framework family, e.g. claude-code, cursor, langgraph. Shown to site owners in aggregate only.
http_statusintegerHTTP status code you received, e.g. 200, 403, 429, 503.
latency_msintegerHow long the request or step took, in milliseconds.

watch_road Watch a road

Get a signed webhook POST whenever a road changes light (green, amber, red). Needs a key on LaneRouter Pro; up to 25 watches per key. Returns the watch id, used by unwatch_road, and a signing secret shown only once: verify each delivery’s LaneRouter-Signature header with it. Watching the same road with the same url twice is refused; use list_watches to see what you already watch.

ParameterTypeDescription
target *stringURL or host/path to watch, e.g. "shop.example/checkout".
url *stringYour public https webhook endpoint. It must answer 2xx within 8 seconds; failed deliveries are retried after 1, 5, 30 and 120 minutes.
actionstringShort verb, matching the one agents check and report with, e.g. checkout. Defaults to visit.

unwatch_road Stop watching a road

Delete one of your watches. Its webhook stops immediately and its delivery log is removed; this cannot be undone, but you can create a new watch with watch_road. Get the id from list_watches or from the watch_road result. Returns an error if no watch with that id belongs to your key. Needs a key.

ParameterTypeDescription
id *integerWatch id from list_watches or watch_road.

list_watches List watches

List every road your key watches, with each watch’s id, webhook url, current light, whether it is active, and its last delivery. Use the id with unwatch_road. Needs a key. To check a road’s live condition, use check_road instead.

red_lights Red lights right now

List every road that is red right now (agents walled off or the service broken), with its condition, since when, and a link. Use it to plan a multi-step task around known trouble; use check_road for the full conditions, advice and detours of one road. Works without a key.