Look up NVDA's Python API (for developers)
nvda_lookup_apiCheck whether an NVDA API name exists in the running version, see its signature, docs and deprecation status, or search loaded modules before writing add-on code.
Instructions
For add-on developers: check a name in the Python code of the NVDA that is running, before writing add-on code that uses it. NVDA changes its API in the first release of each year, so names remembered from older versions may be gone, renamed or deprecated.
With name: whether it exists, what it is, its signature, docstring and members, where it is defined (with a link to NVDA's source for this release), and whether it looks deprecated; close names when it does not exist. With search: names containing the text in the loaded modules of NVDA and its add-ons, and in the classes they define. It reads only, and does not run the code it looks at.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nvda_lookup_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A dotted name to look up, such as 'controlTypes.Role.TOGGLEBUTTON', 'eventHandler.requestEvents' or 'NVDAObjects.NVDAObject'. | |
| limit | No | With search: show at most this many names. | |
| search | No | Instead, part of a name to find in the modules of NVDA and its add-ons, such as 'requestEvents' or 'liveRegion'. | |
| response_format | No | 'markdown' (default) is easier to read; 'json' keeps every field for further processing. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |