Update the agent's settings
cs_update_agentUpdate a Copilot Studio agent's configuration by editing its local YAML file. Set instructions, display name, conversation starters, capabilities, response mode, and content moderation.
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. 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 |
|---|---|---|---|
| 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 (the portal's response instructions), separate from the main instructions | |
| isFileAnalysisEnabled | No | ||
| addConversationStarters | No | ||
| isSemanticSearchEnabled | No | ||
| appendResponseInstructions | No |