NewSurfaceValueSpec

  • The actions.intent.NEW_SURFACE intent uses JSON input to request a new surface with specific capabilities.

  • The JSON input must define the desired capabilities, context for the new surface, and the notification title to prompt the user.

  • Capabilities are specified as a string array, context is a descriptive string, and notification title is also a string.

Passed from the app as input for actions.intent.NEW_SURFACE.

JSON representation
{
  "capabilities": [
    string
  ],
  "context": string,
  "notificationTitle": string
}
Fields
capabilities[]

string

The list of capabilities required from the surface. Eg, ["actions.capability.SCREEN_OUTPUT"]

context

string

Context describing the content the user will receive on the new surface. Eg, "[Sure, I know of 10 that are really popular. The highest-rated one is at Mount Marcy.] Is it okay if I send that to your phone?"

notificationTitle

string

title of the notification which prompts the user to continue on the new surface.