Function nemo_relay_scope_register_tool_execution_intercept

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

#[unsafe(no_mangle)]pub unsafe extern "C" fn nemo_relay_scope_register_tool_execution_intercept(
    scope_uuid: *const c_char,
    name: *const c_char,
    priority: i32,
    exec_cb: NemoRelayToolExecInterceptCb,
    exec_user_data: *mut c_void,
    exec_free: NemoRelayFreeFn,
) -> NemoRelayStatus

Register a scope-local tool execution intercept following the middleware chain pattern.

Parameters

  • scope_uuid: UUID of the target scope (null-terminated C string).
  • name: Unique intercept name.
  • priority: Execution priority (lower runs first).
  • exec_cb: Middleware callback receiving args and a next function.
  • exec_user_data: Opaque pointer for the execution callback.
  • exec_free: Optional destructor for exec_user_data.

Safety

scope_uuid and name must be valid C strings. Callback pointers must be valid.