Add a space member (import)
import_add_memberAdds an existing Sophia user to an import-created space with a viewer, editor, or admin role; if already a member, their role remains unchanged.
Instructions
Needs a token with the import:write scope whose owner is a global admin. Nothing is emailed or notified, and no per-row audit events are written. Only works in a space created with import_create_space (otherwise 403 IMPORT_SPACE_NOT_IMPORTED). Add a person to a space with a role (viewer < editor < admin). If they are already a member their role is NOT changed (created=false).
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": {
"space_key": "<space_key>",
"user_id": "<user_id>",
"role": "<role>"
},
"name": "import_add_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| user_id | Yes | Sophia user id (uuid) from import_find_users or import_ensure_user. | |
| space_key | Yes | Space key, e.g. ENG (uppercase letters and digits; see list_spaces). |