feat: add experimentalScriptExecutionTool

This commit is contained in:
Simon
2025-10-23 19:59:17 +08:00
parent e704398c43
commit 4d3c878809
5 changed files with 43 additions and 0 deletions

View File

@@ -70,6 +70,14 @@ interface AgentConfig {
// page behavior hooks
/**
* @experimental
* Enable the experimental script execution tool that allows executing generated JavaScript code on the page.
* @note Can cause unpredictable side effects.
* @note May bypass some safe guards and data-masking mechanisms.
*/
experimentalScriptExecutionTool?: boolean
/**
* TODO: @unimplemented
* hook when action causes a new page to be opened