Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cartridges/browser-mcp/abi/BrowserMcp/SafeBrowser.idr
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public export
data BrowserAction
= Navigate -- ^ Load a URL in the current tab.
| Click -- ^ Click an element matching a CSS selector.
| Type -- ^ Type text into an element matching a CSS selector.
| TypeText -- ^ Type text into an element matching a CSS selector.
| Screenshot -- ^ Capture a screenshot of the current viewport.
| ReadPage -- ^ Read the DOM text content of the current page.
| FillForm -- ^ Fill multiple form fields in one operation.
Expand Down Expand Up @@ -123,7 +123,7 @@ export
browserActionToInt : BrowserAction -> Int
browserActionToInt Navigate = 0
browserActionToInt Click = 1
browserActionToInt Type = 2
browserActionToInt TypeText = 2
browserActionToInt Screenshot = 3
browserActionToInt ReadPage = 4
browserActionToInt FillForm = 5
Expand All @@ -137,7 +137,7 @@ export
intToBrowserAction : Int -> Maybe BrowserAction
intToBrowserAction 0 = Just Navigate
intToBrowserAction 1 = Just Click
intToBrowserAction 2 = Just Type
intToBrowserAction 2 = Just TypeText
intToBrowserAction 3 = Just Screenshot
intToBrowserAction 4 = Just ReadPage
intToBrowserAction 5 = Just FillForm
Expand Down
Loading