Reference
lg_agents_update: Edit an agent's draft
Edit an agent's draft (the live version keeps running until you publish).
- Changes data: yes
- Credential scope:
agents:write(an API key's scopes, or what you allowed when connecting with OAuth) - Assistant level: an assistant at Read and draft or above
Inputs
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
body | object (name, title, job_description, manager_user_id, spec) | no | |
body.name | string | no | |
body.title | string | no | |
body.job_description | string | no | |
body.manager_user_id | string | no | |
body.spec | object | no |
Example MCP call
A tools/call request to https://manage.restolayer.com/mcp:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "lg_agents_update",
"arguments": {
"id": "agt_01HZXEXAMPLE",
"body": {
"job_description": "Send the weekly brand brief to new writers."
}
}
}
}Example REST call
The same thing over REST (PATCH /v1/agents/:id):
curl -s -X PATCH "https://manage.restolayer.com/v1/agents/agt_01HZXEXAMPLE" \
-H "Authorization: Bearer $LG_API_KEY" \
-H "Content-Type: application/json" \
-d '{"job_description":"Send the weekly brand brief to new writers."}'All tools: MCP tools. Connecting: connect your assistant.