Skip to main content

Module plugin_exec

Module plugin_exec 

Source
Expand description

Plugin executable tool.

Wraps an external binary from a plugin’s bin/ directory as a callable tool. The binary receives JSON input on stdin and returns JSON output on stdout.

Protocol:

  • Input: {"input": <tool_input_json>} written to stdin
  • Output: stdout is the tool result text
  • Exit code 0 = success, non-zero = error
  • Stderr is captured and included in error messages

Structs§

PluginExecTool
A tool backed by an external executable from a plugin’s bin/ directory.

Functions§

discover_plugin_executables
Discover executable tools from a plugin’s bin/ directory.