UiPath Documentation
uipath-cli
latest
false

UiPath CLI user guide

Letzte Aktualisierung 7. Mai 2026

uip agent tool

uip agent tool manages tool resources on an agent project. Tools are the agent's call-outs to external behaviour: Integration Service connectors, Orchestrator processes, other agents, API workflows, Process Orchestration flows, and IXP skills. Each entry in the agent's tool resources corresponds to one action the agent can invoke.

The add verb writes to disk locally; discover and connect call the Integration Service (IS) API and therefore require an active CLI session (uip login). list and remove are purely local.

Synopsis

uip agent tool add      <name> [--type <type>]
                               [--description <desc>]
                               [--connector <key>] [--connector-url <url>]
                               [--object-name <name>]
                               [--connection-id <id>]
                               [--method <method>]
                               [--process-name <name>] [--folder-path <path>]
                               [--path <dir>]
uip agent tool discover  --connector <key> [--connection-id <id>]
uip agent tool connect   <name> --connection-id <id> [--path <dir>]
uip agent tool list                                  [--path <dir>]
uip agent tool remove    <name>                      [--path <dir>]
uip agent tool add      <name> [--type <type>]
                               [--description <desc>]
                               [--connector <key>] [--connector-url <url>]
                               [--object-name <name>]
                               [--connection-id <id>]
                               [--method <method>]
                               [--process-name <name>] [--folder-path <path>]
                               [--path <dir>]
uip agent tool discover  --connector <key> [--connection-id <id>]
uip agent tool connect   <name> --connection-id <id> [--path <dir>]
uip agent tool list                                  [--path <dir>]
uip agent tool remove    <name>                      [--path <dir>]

All subcommands honor the global options (--output, --output-filter, --log-level, --log-file). Exit codes follow the standard contract.

Valid tool types are: integration, process, agent, apiWorkflow, processOrchestration, ixp.

uip agent tool add

Add a tool resource to the agent.

Argumente

  • <name> (required) — Tool name, referenced by the agent.

Optionen

MarkierenStandardErforderlichZweck
--type <type>integration when --connector is present; otherwise requiredconditionalTool type. One of integration, process, agent, apiWorkflow, processOrchestration, ixp.
--description <desc>Free-text description.
--connector <key>yes for integrationConnector key (for example, uipath-slack).
--connector-url <url>Connector base URL (Integration Service tools only).
--object-name <name>Resource/object name from the IS connector (for example, message). When set together with --connector, add switches to the full IS metadata path, which calls the Integration Service API and may write userProfile/debug_overwrites.json.
--connection-id <id>Connection ID to bind to this tool. Together with --object-name, enables the connection-aware debug_overwrites.json write.
--method <method>POSTHTTP method for the tool operation.
--process-name <name>Orchestrator process name to bind. Required by process, agent, apiWorkflow, processOrchestration tool types.
--folder-path <path>Orchestrator folder path where the process is deployed.
--path <path>.Path to the agent project directory.

Required flag combinations:

  • integration tools require --connector.
  • When --connector is given without --type, the type defaults to integration.
  • When both --connector and --object-name are given on an integration tool, the command goes through the IS metadata path and requires a logged-in session.

Beispiele

# Process tool bound to an Orchestrator process
uip agent tool add InvoiceLookup \
  --type process \
  --process-name Invoices \
  --folder-path Shared \
  --path ./my-agent

# Integration Service tool, discovered via IS (requires login)
uip agent tool add SlackSender \
  --connector uipath-slack \
  --object-name message \
  --connection-id a1b2c3d4-0000-0000-0000-000000000610

# Integration tool without IS metadata (local only)
uip agent tool add SlackSender --connector uipath-slack
# Process tool bound to an Orchestrator process
uip agent tool add InvoiceLookup \
  --type process \
  --process-name Invoices \
  --folder-path Shared \
  --path ./my-agent

# Integration Service tool, discovered via IS (requires login)
uip agent tool add SlackSender \
  --connector uipath-slack \
  --object-name message \
  --connection-id a1b2c3d4-0000-0000-0000-000000000610

# Integration tool without IS metadata (local only)
uip agent tool add SlackSender --connector uipath-slack

Data shape (--output json)

Plain path (process, agent, or integration without IS metadata):

{
  "Code": "AgentToolAdd",
  "Data": {
    "Status": "Tool added and bound to Orchestrator process",
    "Name": "InvoiceLookup",
    "Type": "process",
    "Id": "a1b2c3d4-0000-0000-0000-000000000601",
    "ProcessName": "Invoices",
    "FolderPath": "Shared"
  }
}
{
  "Code": "AgentToolAdd",
  "Data": {
    "Status": "Tool added and bound to Orchestrator process",
    "Name": "InvoiceLookup",
    "Type": "process",
    "Id": "a1b2c3d4-0000-0000-0000-000000000601",
    "ProcessName": "Invoices",
    "FolderPath": "Shared"
  }
}

ProcessName and FolderPath are only present when --process-name was passed. Without a process binding, Status is "Tool added" instead.

IS metadata path (--connector + --object-name):

{
  "Code": "AgentToolAdd",
  "Data": {
    "Status": "Integration tool added with IS metadata",
    "Name": "SlackSender",
    "Type": "integration",
    "Id": "a1b2c3d4-0000-0000-0000-000000000605",
    "ConnectorKey": "uipath-slack",
    "ObjectName": "message",
    "ConnectionBound": true
  }
}
{
  "Code": "AgentToolAdd",
  "Data": {
    "Status": "Integration tool added with IS metadata",
    "Name": "SlackSender",
    "Type": "integration",
    "Id": "a1b2c3d4-0000-0000-0000-000000000605",
    "ConnectorKey": "uipath-slack",
    "ObjectName": "message",
    "ConnectionBound": true
  }
}

uip agent tool discover

Discover the operations exposed by an Integration Service connector. Calls the IS API; requires login.

Optionen

MarkierenStandardErforderlichZweck
--connector <key>jaConnector key.
--connection-id <id>Connection ID for tenanted discovery.

Beispiel

uip agent tool discover --connector uipath-slack
uip agent tool discover --connector uipath-slack

Data shape (--output json)

{
  "Code": "AgentToolDiscover",
  "Data": [
    {
      "Name": "sendMessage",
      "DisplayName": "Send Message",
      "Type": "integration",
      "ObjectName": "message"
    }
  ]
}
{
  "Code": "AgentToolDiscover",
  "Data": [
    {
      "Name": "sendMessage",
      "DisplayName": "Send Message",
      "Type": "integration",
      "ObjectName": "message"
    }
  ]
}

Empty connectors return Data: { "Message": "No tools found for this connector" }.

uip agent tool connect

Bind a connection to an already-added integration tool. Calls the IS API; requires login.

Argumente

  • <name> (required) — Tool name to update.

Optionen

MarkierenStandardErforderlichZweck
--connection-id <id>jaConnection ID to bind.
--path <path>.Path to the agent project directory.

Beispiel

uip agent tool connect SlackSender \
  --connection-id a1b2c3d4-0000-0000-0000-000000000610 \
  --path ./my-agent
uip agent tool connect SlackSender \
  --connection-id a1b2c3d4-0000-0000-0000-000000000610 \
  --path ./my-agent

Data shape (--output json)

{
  "Code": "AgentToolConnect",
  "Data": {
    "Status": "Connection bound to tool",
    "Tool": "SlackSender",
    "ConnectionId": "a1b2c3d4-0000-0000-0000-000000000610"
  }
}
{
  "Code": "AgentToolConnect",
  "Data": {
    "Status": "Connection bound to tool",
    "Tool": "SlackSender",
    "ConnectionId": "a1b2c3d4-0000-0000-0000-000000000610"
  }
}

uip agent tool list

Enumerate the tools configured on the agent.

Optionen

MarkierenStandardZweck
--path <path>.Path to the agent project directory.

Beispiel

uip agent tool list --path ./my-agent
uip agent tool list --path ./my-agent

Data shape (--output json)

{
  "Code": "AgentToolList",
  "Data": [
    {
      "Name": "InvoiceLookup",
      "Type": "process",
      "Id": "a1b2c3d4-0000-0000-0000-000000000601",
      "Enabled": true
    }
  ]
}
{
  "Code": "AgentToolList",
  "Data": [
    {
      "Name": "InvoiceLookup",
      "Type": "process",
      "Id": "a1b2c3d4-0000-0000-0000-000000000601",
      "Enabled": true
    }
  ]
}

Empty projects return Data: { "Message": "No tools configured" }.

uip agent tool remove

Remove a tool resource.

Argumente

  • <name> (required) — Tool name or ID.

Optionen

MarkierenStandardZweck
--path <path>.Path to the agent project directory.

Beispiel

uip agent tool remove InvoiceLookup --path ./my-agent
uip agent tool remove InvoiceLookup --path ./my-agent

Data shape (--output json)

{
  "Code": "AgentToolRemove",
  "Data": {
    "Status": "Tool removed",
    "Name": "InvoiceLookup"
  }
}
{
  "Code": "AgentToolRemove",
  "Data": {
    "Status": "Tool removed",
    "Name": "InvoiceLookup"
  }
}

A missing tool fails with Tool "<name>" not found and exit code 1.

Siehe auch

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben