Class: Puppeteer::WebMCPToolCall
- Inherits:
-
Object
- Object
- Puppeteer::WebMCPToolCall
- Defined in:
- lib/puppeteer/web_mcp.rb,
sig/puppeteer/web_mcp.rbs
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#tool ⇒ Object
readonly
Returns the value of attribute tool.
Instance Method Summary collapse
- #initialize(id, tool, input) ⇒ Object constructor
Constructor Details
#initialize(id, tool, input) ⇒ Object
62 63 64 65 66 67 68 69 |
# File 'lib/puppeteer/web_mcp.rb', line 62 def initialize(id, tool, input) @id = id @tool = tool @input = JSON.parse(input) rescue JSON::ParserError => error warn(error.) if ENV['DEBUG'] @input = {} end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
71 72 73 |
# File 'lib/puppeteer/web_mcp.rb', line 71 def id @id end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
71 72 73 |
# File 'lib/puppeteer/web_mcp.rb', line 71 def input @input end |
#tool ⇒ Object (readonly)
Returns the value of attribute tool.
71 72 73 |
# File 'lib/puppeteer/web_mcp.rb', line 71 def tool @tool end |