- Primeros pasos
- Agentes conversacionales de UiPath
- Agentes de UiPath en Studio Web
- Acerca de los agentes de UiPath
- Licencia
- Lista de comprobación de la configuración
- Agentes codificados en Studio Web
- Ejecución de agentes
- Agentes y flujos de trabajo
- Mejores prácticas para construir agentes.
- Elegir el mejor modelo para tu agente
- Mejores prácticas para publicar e implementar agentes
- Mejores prácticas para el diseño de contexto.
- Prácticas recomendadas para DeepRAG y Transformación por Lote: JIT frente a estrategias basadas en índice.
- Trabajar con archivos
- Contextos
- Escaladas
- Evaluaciones
- Seguimientos de agente
- Revisión de agente (vista previa)
- Agentes de UiPath codificados
- Crear con agentes de codificación
Herramientas del cliente
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.
Cuándo utilizar herramientas del lado del cliente
Usa herramientas del lado del cliente cuando el agente necesite:
- 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.
Configurar herramientas del lado del cliente
Para añadir una herramienta del lado del cliente a tu agente conversacional:
-
En el diseñador de agentes, selecciona Añadir herramienta.
-
Selecciona la categoría Herramientas del lado del cliente .
-
Rellena los siguientes campos:
- 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.
-
Selecciona Crear.
After you create the tool, you can configure more settings in the tool properties panel:
- Edite el nombre, la descripción y los esquemas de la herramienta.
- Aplica barreras de seguridad para aplicar políticas de runtime.
- Enable tool-call confirmations to require user approval before the tool runs.
Esquemas de entrada y salida
Ambos esquemas son necesarios y deben ser objetos de esquema JSON válidos. Definen el contrato entre el agente y el cliente:
- 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.
Esquemas de ejemplo
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" }
}
}
}
}
}
Comportamiento en superficies prediseñadas
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.
Cómo funcionan las herramientas del lado del cliente en runtime
Cuando el agente llama a una herramienta del lado del cliente durante una conversación:
- El agente decide utilizar la herramienta en función del contexto de la conversación y la descripción de la herramienta.
- Si las confirmaciones de llamada de herramienta están habilitadas, el usuario revisa y aprueba la entrada propuesta antes de que la herramienta continúe.
- 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.
- El cliente devuelve el resultado al runtime.
- El agente recibe el resultado y continúa su razonamiento.
Confirmaciones de llamadas de herramientas
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:
- Selecciona la herramienta del lado del cliente en el diseñador de agentes.
- En las propiedades de la herramienta, habilita Requerir confirmación.
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.
Ejemplo: asistente de planificación de proyectos
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.
Limitaciones
- 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.
- Cuándo utilizar herramientas del lado del cliente
- Configurar herramientas del lado del cliente
- Esquemas de entrada y salida
- Comportamiento en superficies prediseñadas
- Cómo funcionan las herramientas del lado del cliente en runtime
- Confirmaciones de llamadas de herramientas
- Ejemplo: asistente de planificación de proyectos
- Limitaciones