update_prompt
Update an existing prompt by its ID with new content, system instruction, model, or display name.
Instructions
Update a prompt with given prompt_id and new content, system instruction, model, and display name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt_id": "<prompt_id>"
},
"name": "update_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| content | No | ||
| prompt_id | Yes | ||
| project_id | No | ||
| location_id | No | ||
| display_name | No | ||
| system_instruction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contents | Yes | The combined contents of the prompt. | |
| promptId | Yes | The ID of the prompt. | |
| displayName | Yes | The display name of the prompt. | |
| systemInstruction | Yes | The system instruction for the prompt. |