diff --git a/packages/spec/src/contracts/ai-service.ts b/packages/spec/src/contracts/ai-service.ts index 6b202e2f01..e96162e077 100644 --- a/packages/spec/src/contracts/ai-service.ts +++ b/packages/spec/src/contracts/ai-service.ts @@ -427,6 +427,13 @@ export interface ToolExecutionContext { currentObjectName?: string; /** View the user is currently viewing, if known. */ currentViewName?: string; + /** + * Text of the latest user message (neutral context, like currentObjectName). + * Forwarded so a tool can detect intent — e.g. an explicit confirm/approval — + * without re-deriving it from the transcript. Consumers own any semantics. + * Populated by whichever layer owns the agent route (cloud, post-ADR-0025). + */ + userMessageText?: string; /** Distributed-trace id for cross-service correlation. */ traceId?: string; /**