py_inspect
Inspect a Python object in the project’s installed interpreter to get its signature, docstring, members, source location, and distribution version for exact API verification.
Instructions
Inspect a Python object as installed in the project's own interpreter: signature, docstring, members (for modules/classes), defining file:line and the installed distribution version. target is a dotted path such as 'requests.Session.request' or 'pandas.DataFrame.merge'.
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": {
"target": "<target>"
},
"name": "py_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| max_members | No | ||
| project_dir | No | ||
| include_project | No | also import from the project's ./src and ./ |