Learn an instrument
learn_instrumentBuild or reload a local knowledge base for a specific SCPI instrument's *IDN?, storing remembered commands and manual text so later sessions avoid re-probing.
Instructions
Build (or reload) a local brain for this exact *IDN?.
Saved under ~/.local/share/pyvisa-mcp/ (or PYVISA_MCP_MEMORY). Next session, learn_instrument returns the same profile, remembered SCPI, and manual text without probing again. Pass deep=true / fetch_manual=true to refresh.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deep | No | Ask the instrument what it can enumerate (*OPT?, HELP headers, *LRN?). Not a hardcoded feature list — whatever this firmware answers is stored. | |
| resource | No | Open resource or IP. Opens it if needed. | |
| manual_url | No | Direct URL or local path to a PDF/HTML/TXT manual. Skips search. | |
| fetch_manual | No | Search the web for this model's programming manual, download it, extract text, and keep it next to the profile for search_scope_knowledge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deep | No | ||
| model | No | ||
| notes | No | ||
| cached | No | ||
| dialect | Yes | ||
| options | No | ||
| identity | Yes | ||
| resource | Yes | ||
| help_heads | No | ||
| manual_url | No | ||
| remembered | No | ||
| manual_path | No | ||
| profile_key | No | ||
| cookbook_uri | Yes | ||
| manual_chars | No | ||
| manufacturer | No | ||
| knowledge_dir | No | ||
| instrument_class | No | ||
| starter_commands | Yes | ||
| recommended_tools | Yes |