aboutsummaryrefslogtreecommitdiff
path: root/src/schemas
diff options
context:
space:
mode:
authoramankumarsingh77 <amankumarsingh7702@gmal.com>2026-05-02 16:00:58 +0530
committeramankumarsingh77 <amankumarsingh7702@gmal.com>2026-05-02 16:00:58 +0530
commit6a4bfa31a925af67c026cd68700fe7779fd7c4cb (patch)
tree640a95ed6b17787bd4022a21f73bd4c0a83d8f40 /src/schemas
parentd3d86f9de1cd3465cd1ec1e9a34c36b2f4878694 (diff)
feat: add defineBrowserTool helper, truncation, schemas/common, empty registry
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/schemas')
-rw-r--r--src/schemas/common.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/schemas/common.ts b/src/schemas/common.ts
new file mode 100644
index 0000000..00323c2
--- /dev/null
+++ b/src/schemas/common.ts
@@ -0,0 +1,11 @@
+import { Type } from "typebox";
+
+export const Coords = Type.Object({
+ x: Type.Number({ description: "X coordinate in CSS pixels from left edge of viewport" }),
+ y: Type.Number({ description: "Y coordinate in CSS pixels from top edge of viewport" }),
+});
+
+export const MouseButton = Type.Union(
+ [Type.Literal("left"), Type.Literal("right"), Type.Literal("middle")],
+ { description: 'Mouse button: "left", "right", or "middle"' },
+);