FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ServiceToolProvider

    trait · ferroui-mcp · v0.5.0

    trait ServiceToolProvider: Send + Sync + 'static
    

    A service whose state is safe to access from transport workers. No UI objects may be held. Tool definitions are immutable for the server lifetime. Mutating tools additionally require the server's existing write permission; identity/room ACLs remain the provider's responsibility.

    View source

    Members

    tools

    fn tools(self: &Self) -> Vec<Value>
    

    Source

    validate

    fn validate(self: &Self, name: &str, arguments: &Value) -> Result<(), String>
    

    Source

    call

    fn call(self: &Self, name: &str, arguments: &Value, context: &RequestContext) -> Result<Value, String>
    

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.