Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Hello Guilherme Garcês Santos
System.ConversationContext.PreviousConversationSummary isn’t currently a documented or supported Copilot Studio system variable. Therefore, the VS Code validation error is expected when that expression is entered manually.
Depending on your requirement, use:
-
System.Activity.Textfor the latest user message. -
System.LastMessage.Textfor the previous user message. - A topic/global variable that your topic maintains and passes explicitly to the prompt when you need accumulated conversation context or a custom summary.
Please also test the expression in the Copilot Studio web topic code editor. If the web portal accepts, publishes, and successfully runs the exact expression, but an unchanged cloned topic is rejected only by the latest VS Code extension, that would indicate an extension validation defect rather than unsupported syntax.