For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-PSUAiTool

Updates an existing AI tool definition.

SYNOPSIS

Updates an existing AI tool definition.

SYNTAX

Id

Set-PSUAiTool [-Id] <Int64> [-Name <String>] [-Description <String>] [-Authenticated <Boolean>]
 [-Roles <String[]>] [-ScriptFullPath <String>] [-Mcp] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

AiTool

Set-PSUAiTool [-AiTool] <AiTool> [-Name <String>] [-Description <String>] [-Authenticated <Boolean>]
 [-Roles <String[]>] [-ScriptFullPath <String>] [-Mcp] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Loads an AI tool by Id or pipeline object and applies only the fields supplied to the cmdlet. Use this cmdlet to change metadata, authorization, script paths, or MCP exposure.

EXAMPLES

Example 1

Updates AI tool 5 with a new description, role list, and MCP exposure.

PARAMETERS

-AiTool

Specifies the AI tool to target.

-AppToken

Specifies the app token to use when authenticating to the PowerShell Universal management API.

-Authenticated

Requires authenticated users before the resource can be accessed or invoked.

-ComputerName

Specifies the URL or host name of the target PowerShell Universal instance. Bare host names are normalized to an http://:5000 URL.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

-Credential

Specifies the credentials to use for Basic authentication against the PowerShell Universal management API.

-Description

Specifies a description for the resource.

-Id

Specifies the numeric Id of the resource.

-Integrated

Uses the in-process integrated management client when the cmdlet runs inside PowerShell Universal.

-Mcp

Exposes the AI tool through Model Context Protocol (MCP).

-Name

Specifies the name of the resource.

-Roles

Specifies one or more roles allowed to invoke the AI tool.

-ScriptFullPath

Specifies the full path to the PowerShell script that implements the AI tool.

-TrustCertificate

Allows connections to servers with untrusted TLS certificates.

-UseDefaultCredentials

Uses the current Windows credentials when authenticating to the management API.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

PowerShellUniversal.Models.Intelligence.AiTool

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?