pub struct McpCall {
pub timeout: Option<Duration>,
pub result_not_for_model: bool,
pub check_permissions: bool,
}Expand description
Options of Session::mcp_call.
Fields§
§timeout: Option<Duration>Tool-execution timeout (the CLI clamps it to 1 s – 10 min; default 2 min).
result_not_for_model: boolThe result goes to a program, not a model: content comes back as the server’s own MCP blocks.
check_permissions: boolDecide the call as if the model made it (permission rules, hooks,
can_use_tool), instead of trusting the host.
Trait Implementations§
Auto Trait Implementations§
impl Forget for McpCall
impl Freeze for McpCall
impl Move for McpCall
impl RefUnwindSafe for McpCall
impl Send for McpCall
impl Sync for McpCall
impl Unpin for McpCall
impl UnsafeUnpin for McpCall
impl UnwindSafe for McpCall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more