Skip to content
Developer Preview

goal/set

Sets the session goal objective; wakes a goal-driving turn iff idle and the resulting goal is unfinished.

Type: GoalSetParams

goal/set params: set the session’s goal objective.

Field Type Stability Presence Description
commandId string required The idempotency handle (UUIDv7).
objective string required The objective text; required, non-empty after Unicode-whitespace trim (the trimmed text is the payload). Empty-after-trim is -32602 invalidParams.
sessionId string required The target session.
Source

schema/msp/experimental/msp.schema.json#/methods/goal~2Fset

{
"description": "Sets the session goal objective; wakes a goal-driving turn iff idle and the resulting goal is unfinished.",
"params": {
"$ref": "#/$defs/GoalSetParams"
},
"result": {
"$ref": "#/$defs/GoalCommandResult"
}
}