Check symbols and kwargs against an installed version
check_symbolsValidate intended Python symbols and keyword arguments against a package version before execution; returns present/missing status, rejected kwargs, deprecation notes, and hints.
Instructions
Batch-check that symbols, and the keyword arguments you plan to pass, exist in a specific version of a package. Returns present/missing per symbol (unknown where the index can't tell, with the reason), rejected kwargs, deprecation notes, and hints. Use it to preflight code against the version you have installed: pass the symbols, or the code itself. For one symbol across all releases use symbol_history, and after an exception use explain_error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package": "<package>",
"version": "<version>"
},
"name": "check_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Python code to check instead of, or as well as, `symbols`: the package names it imports, the attributes it reads off them and the keyword arguments it passes are read with `ast` (never run). | |
| package | Yes | PyPI distribution name, e.g. 'langchain-core'. | |
| symbols | No | Up to 100 symbols, each a public dotted path plus the keyword arguments you plan to pass. | |
| version | Yes | Installed version, e.g. '0.28.1'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| exact | Yes | ||
| package | Yes | ||
| results | Yes | ||
| resolved_version | Yes | Nearest indexed version <= requested_version. | |
| requested_version | Yes |