find_implementations
Identify Python classes that implement a given Protocol or ABC, considering both explicit inheritance and structural method-set matches.
Instructions
Find classes implementing a Protocol or ABC, both explicitly (as a base class, including indirect subclasses) and structurally (method-set match).
Args:
path: A .py file or directory; the containing directory is scanned.
interface: Name of the Protocol/ABC/base class. Named interface
rather than protocol to match the identical tool in the
TypeScript server, so one vocabulary works across both.
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": {
"path": "<path>",
"interface": "<interface>"
},
"name": "find_implementations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| interface | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |