Class: AgentSandbox::BrowserTools::Snapshot

Inherits:
Base
  • Object
show all
Defined in:
lib/agent_sandbox/browser_tools.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #run_ab

Constructor Details

This class inherits a constructor from AgentSandbox::BrowserTools::Base

Instance Method Details

#execute(interactive_only: true) ⇒ Object



131
132
133
134
135
# File 'lib/agent_sandbox/browser_tools.rb', line 131

def execute(interactive_only: true)
  args = ["snapshot", "--json"]
  args << "-i" if interactive_only
  run_ab(args)
end