Skip to content

Commit 74ea3b2

Browse files
committed
Add documentation to spec
1 parent d752ae6 commit 74ea3b2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

specification/draft/apps.mdx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,43 @@ Host behavior:
767767
* Host SHOULD add the message to the conversation context, preserving the specified role.
768768
* Host MAY request user consent.
769769

770+
`ui/follow-up-message` - Send a follow-up message to continue the conversation
771+
772+
```typescript
773+
// Request
774+
{
775+
jsonrpc: "2.0",
776+
id: 3,
777+
method: "ui/follow-up-message",
778+
params: {
779+
content: ContentBlock[] // Message content blocks (text, image, etc.)
780+
}
781+
}
782+
783+
// Success Response
784+
{
785+
jsonrpc: "2.0",
786+
id: 3,
787+
result: {} // Empty result on success
788+
}
789+
790+
// Error Response (if denied or failed)
791+
{
792+
jsonrpc: "2.0",
793+
id: 3,
794+
result: {
795+
isError: true
796+
}
797+
}
798+
```
799+
800+
Use this to continue the conversation based on user interaction with the app or prompt a follow up app. For example, when a user clicks on a data point, the app can send a follow-up message asking for an analysis of that data point, or to display a new app with more details about that data point.
801+
802+
Host behavior:
803+
* Host SHOULD add the message to the conversation context as a user message.
804+
* Host MAY request user consent before sending.
805+
* Host MAY allow user to review and edit the message before sending.
806+
770807
`ui/request-display-mode` - Request host to change display mode
771808

772809
```typescript

0 commit comments

Comments
 (0)