Skip to content

Add run_scripts tool to Agent - #3289

Merged
texodus merged 2 commits into
masterfrom
run-scripts
Nov 16, 2026
Merged

texodus merged 2 commits into
masterfrom
run-scripts

Conversation

@texodus

@texodus texodus commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

This PR adds a run_scripts tool to Perspective's Agent, which allows it to execute arbitrary JavaScript (in a sandbox subject to CSP) against Table creation and update, allowing your model to build data adapters on the fly by calling Browser APIs.

This tool is hidden behind the execute_code entitlement, off by default.

Screenshot 2026-11-12 at 11 17 29 AM Screenshot 2026-11-12 at 4 09 42 PM

@texodus texodus added the enhancement Feature requests or improvements label Nov 12, 2026
Signed-off-by: Andrew Stein <steinlink@gmail.com>

# Conflicts:
#	rust/perspective-viewer/src/rust/custom_elements/viewer.rs
Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus
texodus marked this pull request as ready for review November 16, 2026 00:44
@texodus
texodus merged commit ebfa439 into master Nov 16, 2026
19 checks passed
@texodus
texodus deleted the run-scripts branch November 16, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature requests or improvements

Development

Successfully merging this pull request may close these issues.

1 participant