Edit a tool
cs_edit_toolEdit Copilot Studio tool definitions—name, description, inputs, and connection settings—with a preview diff for approval before writing changes.
Instructions
Change an existing tool file: name, description, modelDescription / modelDisplayName (what the orchestrator routes on), operationId, connection mode or reference, output mode, and inputs (set / add / remove). Validates afterwards. The first call changes nothing: it returns the files it would write, as a diff against what is there now, for the user to approve. Call it again with the same arguments plus confirm: true to write them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | Tool name, file stem or path | |
| rename | No | ||
| confirm | No | Required to write the change to the file. Without it the tool returns a preview - the changed lines against the current ones, and the character count - and writes nothing. | |
| addInputs | No | ||
| setInputs | No | ||
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| outputMode | No | ||
| description | No | ||
| operationId | No | ||
| removeInputs | No | propertyNames to drop | |
| connectionMode | No | ||
| modelDescription | No | ||
| modelDisplayName | No | ||
| connectionReference | No |