Class: Puppeteer::WebMCPToolCall

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer/web_mcp.rb,
sig/puppeteer/web_mcp.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, tool, input) ⇒ Object

Parameters:



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.message) if ENV['DEBUG']
  @input = {}
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.

Returns:

  • (Object)


71
72
73
# File 'lib/puppeteer/web_mcp.rb', line 71

def id
  @id
end

#inputObject (readonly)

Returns the value of attribute input.

Returns:

  • (Object)


71
72
73
# File 'lib/puppeteer/web_mcp.rb', line 71

def input
  @input
end

#toolObject (readonly)

Returns the value of attribute tool.

Returns:

  • (Object)


71
72
73
# File 'lib/puppeteer/web_mcp.rb', line 71

def tool
  @tool
end