Class: HeadlessBrowserTool::Tools::GetNarrationHistoryTool
- Inherits:
-
BaseTool
- Object
- FastMcp::Tool
- BaseTool
- HeadlessBrowserTool::Tools::GetNarrationHistoryTool
- Defined in:
- lib/headless_browser_tool/tools/get_narration_history_tool.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/headless_browser_tool/tools/get_narration_history_tool.rb', line 11 def execute history = browser.evaluate_script("window.getAINarration ? window.getAINarration() : []") if history.nil? || history.empty? "No narration history available. Enable auto_narrate first." else format_history(history) end end |