Skip to content

Reference

lg_agents_update: Edit an agent's draft

Markdown version

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

FieldTypeRequiredNotes
idstringyes
bodyobject (name, title, job_description, manager_user_id, spec)no
body.namestringno
body.titlestringno
body.job_descriptionstringno
body.manager_user_idstringno
body.specobjectno

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.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.