Stellarion
Tools

stellarion_find_implementors

Find functions registered as struct field callbacks or vtable dispatch implementations

Searches for functions that are assigned to struct fields, typically used in vtable-style dispatch, ops patterns, or callback registration. This covers patterns like C-style function pointer tables, Rust trait object vtables, and plugin/strategy registrations where functions are stored in struct fields.

When to Use

  • You want to find all implementations registered for an ops struct or strategy pattern
  • You are looking for callback functions assigned to a specific struct field
  • You need to understand dynamic dispatch through function pointer tables
  • You are auditing which functions are plugged into a plugin architecture

Parameters

ParameterTypeRequiredDefaultDescription
structTypestringnoName of the struct type to search (e.g., FileOps, HandlerTable)
fieldstringnoSpecific field name to look for (e.g., read, on_connect)
limitnumberno50Maximum number of results

Examples

Find all implementations of a handler struct

Natural language:

What functions are registered as FileOps callbacks?

MCP call:

{
  "tool": "stellarion_find_implementors",
  "arguments": {
    "structType": "FileOps"
  }
}

Find implementations for a specific field

Natural language:

Which functions are assigned to the on_message field of WebSocketHandler?

MCP call:

{
  "tool": "stellarion_find_implementors",
  "arguments": {
    "structType": "WebSocketHandler",
    "field": "on_message"
  }
}

Browse all vtable registrations

Natural language:

Find all function pointer registrations in the project

MCP call:

{
  "tool": "stellarion_find_implementors",
  "arguments": {}
}

Output Format

Returns matching implementations:

  • function — Name of the function being registered
  • uri — File path where the registration occurs
  • line — Line number of the registration
  • structType — The struct type the function is registered on
  • field — The specific field being assigned
  • snippet — Code snippet showing the registration

Tips

  • This is especially useful in C, Rust, and Go codebases that use struct-based dispatch instead of interfaces or virtual methods.
  • If you don't know the struct name, omit structType to search broadly.
  • Combine with stellarion_get_detailed_symbol to inspect the implementation of a discovered callback function.
  • For interface/trait implementations in the traditional OOP sense, use stellarion_symbol_search with the interface name instead.