Persona programs: update, delete
The Persona Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.
Reference for Persona, one group of Persona programs.
Persona.update
Changes the given properties of a Persona. Verb page.
do: return await $.Persona.update(input)Emits Persona.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Persona. |
job | text | What they come to get done. | |
from | string | Lineage: the slot it compiles from, as Hypothesis#<slot>@v<version>. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
persona | Persona | required | The Persona. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Persona.update({ id: 'persona_YdpO6wSexq', from: 'Hypothesis#approach@v1' })"
}
}Persona.delete
Deletes a Persona: a soft delete that keeps its history, undone by Thing.restore. Verb page.
do: return await $.Persona.delete(input)Emits Persona.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Persona. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
persona | Persona | required | The Persona. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Persona.delete({ id: 'persona_YdpO6wSexq' })"
}
}