UiPath Documentation
uipath-cli
latest
false

UiPath CLI user guide

Last updated May 7, 2026

uip agent input / output

The agent tool manages an agent project's I/O schema through two sibling command groups, uip agent input and uip agent output. Both write directly to the agent project on disk (purely local — no login required), and both keep agent.json's inputSchema / outputSchema in sync with the schema copies in entry-points.json. Run uip agent validate afterwards to confirm both files still agree.

Note:

uip agent input and uip agent output are two separate command groups — there is no combined uip agent io verb. Invoke them directly (uip agent input add …, uip agent output add …).

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


uip agent input

Add and remove parameters on the agent's input schema.

Synopsis

uip agent input add    <name> --type <type> [--description <text>] [--path <dir>]
uip agent input remove <name>                                      [--path <dir>]
uip agent input add    <name> --type <type> [--description <text>] [--path <dir>]
uip agent input remove <name>                                      [--path <dir>]

uip agent input add

Add an input parameter.

Arguments:

  • <name> (required) — Parameter name. Becomes a key in inputSchema.properties.

Options:

FlagDefaultRequiredPurpose
--type <type>yesJSON Schema type. One of: string, number, boolean, object, array.
--description <desc>Human-readable description, written into the property's description.
--path <path>.Path to the agent project directory.

Example:

uip agent input add email \
  --type string \
  --description "User email" \
  --path ./my-agent
uip agent input add email \
  --type string \
  --description "User email" \
  --path ./my-agent

Data shape (--output json):

{
  "Code": "AgentInputAdd",
  "Data": {
    "Status": "Input added",
    "Name": "email",
    "Type": "string"
  }
}
{
  "Code": "AgentInputAdd",
  "Data": {
    "Status": "Input added",
    "Name": "email",
    "Type": "string"
  }
}

uip agent input remove

Remove an input parameter.

Arguments:

  • <name> (required) — Parameter name.

Options:

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

Example:

uip agent input remove email --path ./my-agent
uip agent input remove email --path ./my-agent

Data shape (--output json):

{
  "Code": "AgentInputRemove",
  "Data": {
    "Status": "Input removed",
    "Name": "email"
  }
}
{
  "Code": "AgentInputRemove",
  "Data": {
    "Status": "Input removed",
    "Name": "email"
  }
}

A missing input fails with Input "<name>" not found and exit code 1.


uip agent output

Add and remove fields on the agent's output schema.

Synopsis

uip agent output add    <name> --type <type> [--description <text>] [--path <dir>]
uip agent output remove <name>                                      [--path <dir>]
uip agent output add    <name> --type <type> [--description <text>] [--path <dir>]
uip agent output remove <name>                                      [--path <dir>]

uip agent output add

Add an output field.

Arguments:

  • <name> (required) — Field name. Becomes a key in outputSchema.properties.

Options:

FlagDefaultRequiredPurpose
--type <type>yesJSON Schema type. One of: string, number, boolean, object, array.
--description <desc>Human-readable description.
--path <path>.Path to the agent project directory.

Example:

uip agent output add summary \
  --type string \
  --description "Result summary" \
  --path ./my-agent
uip agent output add summary \
  --type string \
  --description "Result summary" \
  --path ./my-agent

Data shape (--output json):

{
  "Code": "AgentOutputAdd",
  "Data": {
    "Status": "Output added",
    "Name": "summary",
    "Type": "string"
  }
}
{
  "Code": "AgentOutputAdd",
  "Data": {
    "Status": "Output added",
    "Name": "summary",
    "Type": "string"
  }
}

uip agent output remove

Remove an output field.

Arguments:

  • <name> (required) — Field name.

Options:

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

Example:

uip agent output remove summary --path ./my-agent
uip agent output remove summary --path ./my-agent

Data shape (--output json):

{
  "Code": "AgentOutputRemove",
  "Data": {
    "Status": "Output removed",
    "Name": "summary"
  }
}
{
  "Code": "AgentOutputRemove",
  "Data": {
    "Status": "Output removed",
    "Name": "summary"
  }
}

A missing output fails with Output "<name>" not found and exit code 1.


See also

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated