// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * Renders the main content area into the HTML. * @param {string} containerId The ID of the DOM element to inject the content into. * @param {string} idString The id of the item inside the main content area. */ function renderMainContent(containerId, idString, instructionContent) { const mainContentContainer = document.getElementById(containerId); if (!mainContentContainer) { console.error(`Content container with ID "${containerId}" not found.`); return; } const idAttribute = idString ? `id="${idString}"` : ''; const contentHTML = `
Toolbox UI is a built-in web interface that allows users to visually inspect and test out configured resources such as tools and toolsets. To get started, select a resource from the navigation tab to the left.
Toolbox UI DocumentationTo inspect and test a tool, please click on one of your tools to the left.
Tools define actions an agent can take, such as running a SQL statement or interacting with a source.
You can define Tools as a map in the tools section of your tools.yaml file.
Some tools also use parameters. Parameters for each Tool will define what inputs the agent will need to provide to invoke them.
To inspect a specific toolset, please enter the name of a toolset and press search.
Toolsets define groups of tools an agent can access. You can define Toolsets as a map in the toolsets section of your tools.yaml file. Toolsets may
only include valid tools that are also defined in your tools.yaml file.