agents_prompt_restore
Restore a past version of an agent's prompt_text by version_number. Creates a new version pointing at the restored content — history is preserved. Use agents.prompt_history first to find the version_number you want.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional: why this restore is happening (shows up in history UI) | |
| agent_id | Yes | ID of the agent | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| version_number | Yes | The version_number to restore (get it from agents.prompt_history) |