mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-04 06:47:29 +08:00
refactor: stabilize runtime and unify config
This commit is contained in:
@@ -48,8 +48,8 @@ func (t *BrowserTool) Parameters() map[string]interface{} {
|
||||
}
|
||||
|
||||
func (t *BrowserTool) Execute(ctx context.Context, args map[string]interface{}) (string, error) {
|
||||
action, _ := args["action"].(string)
|
||||
url, _ := args["url"].(string)
|
||||
action := MapStringArg(args, "action")
|
||||
url := MapStringArg(args, "url")
|
||||
|
||||
switch action {
|
||||
case "screenshot":
|
||||
|
||||
Reference in New Issue
Block a user