-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathsidebar.html
More file actions
102 lines (90 loc) · 3.24 KB
/
Copy pathsidebar.html
File metadata and controls
102 lines (90 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<!--
Copyright 2026 Google LLC
SPDX-License-Identifier: Apache-2.0
-->
<html>
<head>
<title>Tool Inspector</title>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="container">
<h2 class="collapsible-header">WebMCP Tools</h2>
<div class="section-content">
<div id="status"></div>
<div class="table-container">
<table id="resultsTable">
<thead>
<tr id="tableHeaderRow"></tr>
</thead>
<tbody id="tableBody"></tbody>
</table>
<div id="copyToClipboard">
<span id="copyAsScriptToolConfig">📝 Copy as ScriptToolConfig</span>
<span id="copyAsJSON">📝 Copy as JSON</span>
</div>
</div>
</div>
<h2 class="collapsible-header">Interact with the Page</h2>
<div class="section-content">
<div class="form-group">
<div class="label-with-button">
<label for="userPromptText">User Prompt</label>
<button id="advancedBtn" title="Advanced features" popovertarget="advancedSection" class="icon-btn">︙</button>
</div>
<textarea id="userPromptText"></textarea>
</div>
<dialog id="advancedSection" popover autofocus>
<div class="menu-label">Gemini Model</div>
<label class="model-option">
<input type="radio" name="model" value="gemini-3-flash-preview">
<span>Gemini 3 Flash Preview</span>
</label>
<label class="model-option">
<input type="radio" name="model" value="gemini-3.1-flash-lite">
<span>Gemini 3.1 Flash-Lite</span>
</label>
<label class="model-option">
<input type="radio" name="model" value="gemini-3.5-flash-lite">
<span>Gemini 3.5 Flash-Lite</span>
</label>
<label class="model-option">
<input type="radio" name="model" value="gemini-3.5-flash">
<span>Gemini 3.5 Flash</span>
</label>
<label class="model-option">
<input type="radio" name="model" value="gemini-3.6-flash">
<span>Gemini 3.6 Flash</span>
</label>
<div class="menu-label">Advanced Options</div>
<label class="model-option">
<input type="checkbox" id="suggestUserPromptCheckbox">
<span>Suggest user prompt</span>
</label>
</dialog>
<div class="form-group">
<button id="promptBtn" disabled>Send</button>
<button id="resetBtn" class="secondary" disabled>Reset</button>
<button id="apiKeyBtn" class="secondary">Set Gemini API key</button>
<button id="traceBtn" class="secondary">Copy trace</button>
</div>
<pre id="promptResults"></pre>
<div class="form-group">
<label for="toolNames">Tool</label>
<select id="toolNames"></select>
</div>
<div class="form-group">
<label for="inputArgsText">Input Arguments</label>
<textarea id="inputArgsText">{"text": "hello world"}</textarea>
</div>
<div class="form-group">
<button id="executeBtn">Execute Tool</button>
</div>
<pre id="toolResults"></pre>
</div>
</div>
<script type="module" src="sidebar.js"></script>
</body>
</html>