Skip to content

Reference

lg_agents_publish: Publish an agent

Markdown version

Publish an agent's draft as its new live version.

  • 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 Full; a lower level is refused

Inputs

FieldTypeRequiredNotes
idstringyes
bodyobject (notes, grants)no
body.notesstringno
body.grantsobjectno

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_publish",
    "arguments": {
      "id": "agt_01HZXEXAMPLE",
      "body": {
        "notes": "Reads the claims section too."
      }
    }
  }
}

Example REST call

The same thing over REST (POST /v1/agents/:id/publish):

curl -s -X POST "https://manage.restolayer.com/v1/agents/agt_01HZXEXAMPLE/publish" \
  -H "Authorization: Bearer $LG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"notes":"Reads the claims section too."}'

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.