Update the agent's settings
cs_update_agentPreview and apply changes to a Copilot Studio agent's configuration: instructions, display name, capabilities, response mode, moderation, and more. First call shows a diff and character count; confirm to write the file.
Instructions
Edit agent.mcs.yml (standard harness): instructions, display name, conversation starters, model hint, and the settings the portal groups under responses and generative AI: response instructions (wording and formatting), response mode, conversation history, capability toggles (web browsing, code interpreter, image generation, Teams / SharePoint / email / meeting / people search), whether the model may use its own general knowledge, content moderation level, file analysis and semantic search. The first call writes nothing: it returns the change - the current lines against the proposed ones, and the instruction character count against the 8000 the product allows - and the file is written on a second call with confirm: true. Local file change; cs_push applies it. For GitHub Copilot harness (cli-copilot) workspaces the instructions go into settings.mcs.yml.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| history | No | Whether the agent sees conversation history | |
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| displayName | No | ||
| capabilities | No | Capability toggles; only the ones you pass are changed | |
| instructions | No | Replace the instructions | |
| modelNameHint | No | Model hint, e.g. GPT5Chat | |
| historyMessages | No | How many past user messages to include (with history: conversation) | |
| contentModeration | No | ||
| useModelKnowledge | No | Whether the model may answer from its own general knowledge as well as the knowledge sources | |
| appendInstructions | No | Add a paragraph to the instructions | |
| defaultResponseMode | No | Response mode: Auto, ThinkDeeper (more reasoning, slower) or QuickResponse | |
| conversationStarters | No | ||
| responseInstructions | No | How answers should be worded and formatted (Settings > Responses > Response formatting in the portal), separate from the main instructions. Capped at 500 characters. | |
| isFileAnalysisEnabled | No | ||
| addConversationStarters | No | ||
| isSemanticSearchEnabled | No | ||
| appendResponseInstructions | No | Add a line to the response formatting, within the same 500 characters |