- スタート アップ ガイド
- UiPath 会話型エージェント
- Studio Web での UiPath Agents
- UiPath のコード化されたエージェント
- Coding Agents で構築する
クライアント側のツール
Conversational agent tools that run in the user's browser or host application, so the agent can read client data and trigger actions in the host application.
Client-side tools run on the client surface, which is the user's browser or host application, instead of on the UiPath server. When the agent calls a client-side tool, the runtime pauses, sends the tool call to the client, and resumes when the client returns a result.
クライアント側のツールを使用すべき状況
クライアント側のツールは、エージェントが以下が必要な場合に使用します。
- Read data from the host application that the server can't access, such as the contents of a task board, form fields, or session-specific state.
- Trigger actions in the host application, such as navigating to a page, opening a dialog, creating a record in the local UI, or updating a component.
- Use device or browser features that the server can't access, such as the clipboard, local storage, or geolocation.
Client-side tools are available only for conversational agents deployed through a surface that supports client-side tool handling, such as the UiPath TypeScript SDK or any surface that implements the UiPath conversation protocol. The surface must register a handler for each client-side tool, and tools without a registered handler return an error to the agent.
クライアント側ツールを設定する
会話型エージェントにクライアント側のツールを追加するには、以下の手順を実行します。
-
エージェント デザイナーで [ツールを追加] を選択します。
-
[ クライアント側のツール ] カテゴリを選択します。
-
次のフィールドに入力します。
- Tool name: a unique name for the tool. The name must begin with a letter or underscore, and can contain only letters, digits, spaces, and underscores.
- Description: what the tool does and when to use it. The agent uses this description to decide when to call the tool.
- Input schema: a JSON Schema object that defines the parameters the agent passes to the client when it calls the tool.
- Output schema: a JSON Schema object that defines the structure of the result the client returns to the agent.
-
[作成] を選択します。
After you create the tool, you can configure more settings in the tool properties panel:
- ツールの名前、説明、スキーマを編集します。
- ガードレールを適用してランタイム ポリシーを適用します。
- Enable tool-call confirmations to require user approval before the tool runs.
入力スキーマと出力スキーマ
両方のスキーマが必須であり、有効な JSON スキーマ オブジェクトである必要があります。エージェントとクライアントの間の契約を次のように定義します。
- The input schema specifies the data that the agent sends to the client when it calls the tool. The agent fills in the input values from the conversation context and the schema definition.
- The output schema specifies the data that the client returns to the agent after it runs the tool. The agent uses this result to continue its reasoning.
スキーマの例
For a tool that reads tasks from a project board, the input schema is:
{
"type": "object",
"properties": {
"boardId": {
"type": "string",
"description": "The ID of the task board to read from"
},
"status": {
"type": "string",
"enum": ["todo", "in-progress", "done"],
"description": "Filter tasks by status"
}
},
"required": ["boardId"]
}
{
"type": "object",
"properties": {
"boardId": {
"type": "string",
"description": "The ID of the task board to read from"
},
"status": {
"type": "string",
"enum": ["todo", "in-progress", "done"],
"description": "Filter tasks by status"
}
},
"required": ["boardId"]
}
The output schema is:
{
"type": "object",
"properties": {
"tasks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"title": { "type": "string" },
"status": { "type": "string" },
"assignee": { "type": "string" }
}
}
}
}
}
{
"type": "object",
"properties": {
"tasks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"title": { "type": "string" },
"status": { "type": "string" },
"assignee": { "type": "string" }
}
}
}
}
}
事前に構築されたサーフェスでの動作
On pre-built surfaces, such as Instance Management and iFrame embedding, a client-side tool displays a form to the user based on the output schema. The user fills in the fields and submits the result back to the agent.
On custom surfaces built with the UiPath TypeScript SDK, the host application handles tool calls programmatically. It reads data, triggers actions, or interacts with local systems without manual user input.
実行時のクライアント側ツールの動作
エージェントが会話中にクライアント側のツールを呼び出すと、以下のようになります。
- エージェントは、会話のコンテキストとツールの説明に基づいて、ツールの使用を決定します。
- ツール呼び出しの確認が有効化されている場合、ツールを続行する前に、ユーザーは提案された入力を確認して承認します。
- The runtime sends the tool call to the client surface, including the tool name, the input values, and the input and output schemas.
- The client surface runs its registered handler for the tool with the provided input.
- クライアントは結果をランタイムに返します。
- エージェントは結果を受け取り、推論を続行します。
ツール呼び出しの確認
You can require user confirmation before a client-side tool runs. Use confirmations for tools that perform actions with visible side effects, such as creating a task, updating a record, or navigating away from the current page.
To require confirmation for a client-side tool:
- エージェント デザイナーでクライアント側のツールを選択します。
- ツールのプロパティで、[ 確認が必要] を有効化します。
When confirmation is enabled, the agent pauses before it runs the tool and shows the user the proposed input parameters. The user can approve the tool call, modify the inputs, or reject the tool call. For details, refer to Tool-call confirmations.
例: プロジェクト計画アシスタント
A project planning assistant is embedded in a task management application. The agent has two client-side tools:
read_board_tasks: reads the current tasks from the user's task board in the host application.create_task: creates a new task on the user's board.
When a user asks "What should I work on next?", the agent calls read_board_tasks to read data from the client. The host application reads the board state and returns the task data. The agent then analyzes the tasks and suggests a priority order based on status, deadlines, and dependencies.
When the user asks "Add a task to review the Q3 report by Friday", the agent calls create_task to write data to the client, with the title, description, and due date. If confirmation is enabled, the user reviews the proposed task details first. The host application creates the task on the board, and the agent confirms that the task was created.
制限事項
- Client-side tool execution depends on the availability and responsiveness of the client surface. If the client disconnects while the tool runs, the tool call can fail.
- The client surface must register a handler for each client-side tool that the agent defines. If a handler is missing, the tool call returns an error to the agent.