From 87af5692e34f1c6f38de1853947c3d928d5afbb9 Mon Sep 17 00:00:00 2001 From: Brandon Fergerson Date: Tue, 22 Oct 2024 12:35:44 -0300 Subject: [PATCH] chore: tab work --- src/tools/change_theme.md | 20 ++++++++++++++++++++ src/tools/new_tab.md | 11 +++++++++++ src/tools/next_tab.md | 11 +++++++++++ src/tools/previous_tab.md | 11 +++++++++++ 4 files changed, 53 insertions(+) create mode 100644 src/tools/change_theme.md create mode 100644 src/tools/new_tab.md create mode 100644 src/tools/next_tab.md create mode 100644 src/tools/previous_tab.md diff --git a/src/tools/change_theme.md b/src/tools/change_theme.md new file mode 100644 index 0000000..de1f0ba --- /dev/null +++ b/src/tools/change_theme.md @@ -0,0 +1,20 @@ +```yaml +type: function +function: + name: change_theme + description: Changes the theme of the browser. + parameters: + type: object + properties: + theme: + type: string + description: The theme to switch to. + enum: [ 'light', 'dark' ] + required: + - theme + exec: kotlin +``` + +```kotlin +browser.changeTheme(theme) +``` \ No newline at end of file diff --git a/src/tools/new_tab.md b/src/tools/new_tab.md new file mode 100644 index 0000000..45121bf --- /dev/null +++ b/src/tools/new_tab.md @@ -0,0 +1,11 @@ +```yaml +type: function +function: + name: new_tab + description: Opens a new tab in the browser. + exec: kotlin +``` + +```kotlin +browser.newTab() +``` \ No newline at end of file diff --git a/src/tools/next_tab.md b/src/tools/next_tab.md new file mode 100644 index 0000000..db90476 --- /dev/null +++ b/src/tools/next_tab.md @@ -0,0 +1,11 @@ +```yaml +type: function +function: + name: next_tab + description: Navigates to the next tab. + exec: kotlin +``` + +```kotlin +browser.nextTab() +``` \ No newline at end of file diff --git a/src/tools/previous_tab.md b/src/tools/previous_tab.md new file mode 100644 index 0000000..7a24076 --- /dev/null +++ b/src/tools/previous_tab.md @@ -0,0 +1,11 @@ +```yaml +type: function +function: + name: previous_tab + description: Navigates to the previous tab. + exec: kotlin +``` + +```kotlin +browser.previousTab() +``` \ No newline at end of file