Edit a knowledge source
cs_edit_knowledgeUpdate a Copilot Studio knowledge source by modifying name, description, site URL, subpage inclusion, trigger conditions, or search terms. Preview the exact diff before applying changes with confirmation.
Instructions
Change a knowledge source file: name, description, site URL, includeSubPages, trigger condition (null removes it), additional search terms. 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 |
|---|---|---|---|
| site | No | ||
| 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. | |
| knowledge | Yes | ||
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| description | No | ||
| includeSubPages | No | ||
| triggerCondition | No | ||
| additionalSearchTerms | No |