Tool reference · Directories and organizations

update_directory

Rename a directory

Ownersdestructive

POST /v1/actions/update_directory · MCP tool update_directory

Renames a directory, for its owners. Phones show a directory’s name in every one of its groups, like “Riverside FC • Parents”. A directory has no other settings.

View as Markdown

Parameters

ParameterTypeRequiredLimits
directorystringrequired
namestringrequired

Who can use it

Owners of an organization have it, and each call is checked against which organizations they own. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.

Annotated destructive, so clients like ChatGPT ask the person before calling it.

Errors

Errors carry a stable code and a message written for people. See errors and their status codes.

curl https://api.withopenbook.com/v1/actions/update_directory \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "directory": "0b8e2f4a-6c1d-4e7b-9a3f-5d2c8e1b7f60",
  "name": "Riverside Football Club"
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_directory",
    "arguments": {
      "directory": "0b8e2f4a-6c1d-4e7b-9a3f-5d2c8e1b7f60",
      "name": "Riverside Football Club"
    }
  }
}