Skip to main content

connect_playwright

Function connect_playwright 

Source
pub async fn connect_playwright() -> Result<Vec<Box<dyn Tool>>>
Expand description

连接 Playwright MCP 服务器

§Example

use matrixcode_core::mcp::connect_playwright;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let tools = connect_playwright().await?;
    println!("Playwright tools: {:?}", tools.iter().map(|t| t.definition().name).collect::<Vec<_>>());
    Ok(())
}