Edit a knowledge source
cs_edit_knowledgeEdit a Copilot Studio knowledge source file's name, description, site URL, subpage settings, trigger condition, and search terms. Preview the diff first, then confirm to apply changes.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"knowledge": "<knowledge>"
},
"name": "cs_edit_knowledge"
}
}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 |