victauri_plugin/mcp/verification_params.rs
1use schemars::JsonSchema;
2use serde::Deserialize;
3
4/// Parameters for the `verify_state` tool.
5#[derive(Debug, Deserialize, JsonSchema)]
6pub struct VerifyStateParams {
7 /// JavaScript expression that returns the frontend state object to compare.
8 pub frontend_expr: String,
9 /// Backend state as a JSON object to compare against.
10 pub backend_state: serde_json::Value,
11 /// Target webview label.
12 pub webview_label: Option<String>,
13}
14
15/// Parameters for the `detect_ghost_commands` tool.
16#[derive(Debug, Deserialize, JsonSchema)]
17pub struct GhostCommandParams {
18 /// Optional filter: only consider IPC calls from this webview label.
19 pub webview_label: Option<String>,
20}
21
22/// Parameters for the `check_ipc_integrity` tool.
23#[derive(Debug, Deserialize, JsonSchema)]
24pub struct IpcIntegrityParams {
25 /// Age in milliseconds after which a pending IPC call is considered stale. Default: 5000.
26 pub stale_threshold_ms: Option<i64>,
27 /// Target webview label.
28 pub webview_label: Option<String>,
29}