Docs menu
Get started
Quickstart Install: Claude Code Install: Codex Install: other clients API keysConcepts
How a run works The app profile The severity model What a run does not sayTools
check_access claim_trial_key set_profile run_lint get_law resolve_domain_jurisdiction submit_feedback upload_lint_runGuides
A whole run, end to end Console TestPack in CIReference
Endpoint and transport lexlint.yml schema Errors ChangelogHelp
Support and feedbackTools
check_access
The preflight: is the key good, and how current is the law library?
What it does
The preflight, and the first call to make. It reports whether a key reached LexLint, whether it is valid, how much of today's free allowance is left and when it resets, and how current the LexLint law library is. Pass the slugs you intend to declare and it also returns what the law library holds for each.
Call it first because a missing key otherwise surfaces several steps later, as a rejected
tool call in the middle of a lint rather than as one line before anything was asked.
It costs one upstream request, always, whether or not jurisdictions is set:
the coverage preview that argument returns is read from the same fetch the preflight
already makes, not a second one.
It also answers which models LexLint's procedure is exercised against, in
tested_model_families and model_notice. Your agent compares its
own model against that list and tells you if it is not on it, so you can switch before
spending a run or carry on knowing. The comparison happens in your session:
check_access has no argument that carries a model, and LexLint is never told
which one you are running. It is an advisory rather than a gate, and the lint is the same
lint either way.
Parameters
| Name | Type | Required | What it takes |
|---|---|---|---|
jurisdictions | string[] | no | Optional. Slugs you intend to declare. Returns what the law library holds for each, adding nothing to the cost above: check_access spends that one request whether or not this is set, so the depth of a run is known before it is spent. |
client_version | string | no | The LexLint plugin version you are running, from your SKILL.md. Send it: an installed plugin is frozen at the version it was installed at, and this is the only way the response can tell the developer a newer one exists. Omitted, update_available comes back null, which means LexLint learned nothing about it, never that you are current. |