Skip to content

Commit

Permalink
chore: tab work
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson committed Oct 22, 2024
1 parent 777b77d commit 87af569
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/tools/change_theme.md
Original file line number Diff line number Diff line change
@@ -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)
```
11 changes: 11 additions & 0 deletions src/tools/new_tab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```yaml
type: function
function:
name: new_tab
description: Opens a new tab in the browser.
exec: kotlin
```
```kotlin
browser.newTab()
```
11 changes: 11 additions & 0 deletions src/tools/next_tab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```yaml
type: function
function:
name: next_tab
description: Navigates to the next tab.
exec: kotlin
```
```kotlin
browser.nextTab()
```
11 changes: 11 additions & 0 deletions src/tools/previous_tab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```yaml
type: function
function:
name: previous_tab
description: Navigates to the previous tab.
exec: kotlin
```
```kotlin
browser.previousTab()
```

0 comments on commit 87af569

Please sign in to comment.