Skip to content

[FEATURE] Implement execute_script skill #7

@edenreich

Description

@edenreich

Summary

Implement the execute_script skill to provide custom JavaScript execution functionality. This skill allows the agent to run arbitrary JavaScript code in the browser context with argument passing and return value handling.

Acceptance Criteria

  • Execute custom JavaScript code in browser context
  • Support passing arguments to the script
  • Handle script return values and serialization
  • Implement error handling for script execution failures
  • Support both synchronous and asynchronous script execution
  • Add script timeout protection
  • Handle complex return types (objects, arrays, functions)
  • Support script execution in different contexts (page, worker)
  • Add security validation for script content
  • Implement comprehensive logging for script execution
  • Return execution results with metadata
  • Add unit tests covering various script execution scenarios

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions