victauri_plugin/mcp/backend_params.rs
1use schemars::JsonSchema;
2use serde::Deserialize;
3
4/// Parameters for the `get_registry` tool.
5#[derive(Debug, Deserialize, JsonSchema)]
6pub struct RegistryParams {
7 /// Search query to filter commands by name or description.
8 pub query: Option<String>,
9}
10
11/// Parameters for the `invoke_command` tool.
12#[derive(Debug, Deserialize, JsonSchema)]
13pub struct InvokeCommandParams {
14 /// The Tauri command name to invoke (e.g. "greet", "`save_settings`").
15 pub command: String,
16 /// Arguments as a JSON object. Keys are parameter names. Omit for commands with no arguments.
17 pub args: Option<serde_json::Value>,
18 /// Target webview label.
19 pub webview_label: Option<String>,
20}