Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

613 B
Raw Blame
<!DOCTYPE html>
<html>
<head>
<title>WebMCP registerTool succeeds without schema</title>
<link rel="author" href="mailto:[email protected]">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
promise_test(async () => {
  const tool = {
    name: 'empty',
    description: 'echo empty',
    execute: () => {},
  };

  const controller = new AbortController();
  await document.modelContext.registerTool(tool, { signal: controller.signal });
  controller.abort();
}, 'register tool with only required params');
</script>
</body>
</html>