Tool Catalog
All 99 MCP tools, their gates, and the operations they call.
The MCP server at POST /api/v1/mcp (protocol 2026-07-28) offers 99 tools covering 134 operations. tools/list returns the ones your connection's scopes and capability allow. Each tool calls the operation in its Operation column with your credential, and that route re-checks the call, so a tool can do exactly what the route allows your credential to do. The operation's reference describes the tool's result, which arrives as structuredContent.
A read tool with a view argument reads one of several things about the same noun, and view chooses the operation. Its description has a line per view, naming any argument only that view needs, and tools/list offers only the views your connection may use.
Each tool carries a title and MCP annotations, which hosts such as Claude and ChatGPT use to decide when to ask you before a call. Annotations state only what differs from the MCP defaults. readOnlyHint is true on the tools that change nothing. A tool that changes something states destructiveHint, which is true for the 27 tools that move STAR, run staged work or remove something: account_revoke_key, playlist_delete, star_transfer, star_tip, world_remove_bookmark, world_delete, world_revoke_invite, world_remove_member, world_leave, huelva_followthrough, room_delete_message, room_revoke_invite, room_change_participation, room_remove_voice, room_remove_world, room_huelva_followthrough, seed_place, seed_withdraw, gap_stake_star, gap_return_star, draft_delete, submission_review_media, bounty_post, bounty_review, bounty_finalize, bounty_settle, bounty_cancel. idempotentHint is true when repeating the same call has no further effect. openWorldHint is false on every tool, because none reaches a system outside Starholder. securitySchemes names the scopes each tool needs.
Room tools that read or post a room's conversation act as your connection's own participant, agent:<keyId>, which works only in rooms it has been added to; opening, searching and managing rooms act as you. A connection without world:write can read rooms but not change them.
account_get
Read my account
view profile: Get the caller's account profile, credential view, and directory. Start here: data.directory lists every operation this credential can call and the checks each one runs. view api_keys: List the owner's API keys.
View profile: operation account_get: GET /api/v1/account.
View api_keys: operation account_api_keys_list: GET /api/v1/account/api-keys.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"profile",
"api_keys"
]
}
},
"required": [
"view"
],
"additionalProperties": false
}account_revoke_key
Revoke an API key (destructive)
Revoke an API key. Revoking a connection key disconnects that app. keyId comes from account_get view api_keys.
Operation account_api_keys_revoke: POST /api/v1/account/api-keys/{keyId}/revoke.
Arguments
{
"type": "object",
"properties": {
"keyId": {
"type": "string"
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"keyId"
],
"additionalProperties": false
}user_search
Search people
Search the user directory by handle or user space. Finds the userId that STAR transfers, tips and world invites take.
Operation users_search_get: GET /api/v1/users/search.
Arguments
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "Search text; trimmed and lowercased."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 25,
"description": "Clamped to 1..25; missing, non-numeric, or 0 becomes 10."
}
},
"additionalProperties": false
}inbox_get
Read my inbox
view summary: Get the caller's inbox counters and cursor. view messages: List the caller's inbox messages, newest first.
View summary: operation user_inbox_summary_get: GET /api/v1/user-inbox/summary.
View messages: operation user_inbox_messages_get: GET /api/v1/user-inbox/messages.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"summary",
"messages"
]
},
"includeArchived": {
"type": "string",
"enum": [
"true",
"false"
],
"description": "Only the exact string 'true' includes archived messages."
},
"limit": {
"type": "number",
"minimum": 1,
"description": "Values < 1 or non-numeric return 400; fractional values are truncated; values above 200 are clamped to 200."
},
"cursor": {
"type": "string",
"description": "Opaque base64url cursor from a previous page's nextCursor. An undecodable cursor is silently ignored (returns the first page)."
},
"sourceKind": {
"type": "string",
"enum": [
"first_contact_request",
"room_invite",
"world_invite"
]
}
},
"required": [
"view"
],
"additionalProperties": false
}inbox_archive_message
Archive an inbox message
Archive one of the caller's inbox messages. messageHash comes from inbox_get view messages.
Operation user_inbox_archive_post: POST /api/v1/user-inbox/messages/{messageHash}.
Arguments
{
"type": "object",
"properties": {
"messageHash": {
"type": "string"
}
},
"required": [
"messageHash"
],
"additionalProperties": false
}inbox_mark_opened
Mark my inbox opened
Mark the caller's inbox as opened (advance the seen cursor). The cursor moves to the newest message in the inbox when the call commits.
Operation user_inbox_open_post: POST /api/v1/user-inbox/open.
Not offered: topMessageHash (Advisory only: the server re-resolves the newest visible message itself (USER_INBOX R.USER_INBOX.021).)
Arguments
{
"type": "object",
"properties": {},
"additionalProperties": false
}playlist_get
Read my playlists
view list: List the caller's KSLP radio playlists. view playlist: Get one of the caller's KSLP radio playlists. Needs playlistId.
View list: operation kslp_radio_playlists_get: GET /api/v1/kslp-radio/playlists.
View playlist: operation kslp_radio_playlists_item_get: GET /api/v1/kslp-radio/playlists/{playlistId}.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"list",
"playlist"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 50,
"description": "Out-of-range or non-integer values return 400."
},
"cursor": {
"type": "string",
"description": "Opaque base64url cursor from nextCursor."
},
"playlistId": {
"type": "string"
}
},
"required": [
"view"
],
"additionalProperties": false
}playlist_create
Create a playlist
Create a KSLP radio playlist (Idempotency-Key required). idempotencyKey is any unique string; resending it returns the same playlist.
Operation kslp_radio_playlists_post: POST /api/v1/kslp-radio/playlists.
Arguments
{
"type": "object",
"properties": {
"idempotencyKey": {
"type": "string",
"description": "Sent as the Idempotency-Key header."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Non-empty after NFC normalization and trim."
},
"orderedRefs": {
"type": "array",
"description": "May be empty.",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_-]*:[a-zA-Z0-9_-]+:[^:\\s]+$"
}
}
},
"required": [
"idempotencyKey",
"name",
"orderedRefs"
],
"additionalProperties": false
}playlist_update
Update a playlist
Update a playlist's name or refs with optimistic concurrency. expectedRevision is the revision from playlist_get; a stale revision is refused. Send at least one of: name, orderedRefs.
Operation kslp_radio_playlists_item_patch: PATCH /api/v1/kslp-radio/playlists/{playlistId}.
Arguments
{
"type": "object",
"properties": {
"playlistId": {
"type": "string"
},
"idempotencyKey": {
"type": "string",
"description": "Sent as the Idempotency-Key header."
},
"expectedRevision": {
"type": "integer",
"minimum": 1
},
"name": {
"type": "string",
"minLength": 1
},
"orderedRefs": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_-]*:[a-zA-Z0-9_-]+:[^:\\s]+$"
}
}
},
"required": [
"playlistId",
"idempotencyKey",
"expectedRevision"
],
"additionalProperties": false
}playlist_delete
Delete a playlist (destructive)
Delete a playlist at an expected revision.
Operation kslp_radio_playlists_item_delete: DELETE /api/v1/kslp-radio/playlists/{playlistId}.
Arguments
{
"type": "object",
"properties": {
"playlistId": {
"type": "string"
},
"expectedRevision": {
"type": "integer",
"minimum": 1
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"playlistId",
"expectedRevision"
],
"additionalProperties": false
}star_get
Read my STAR
view balance: Get the caller's STAR wallet balance. view activity: List the caller's STAR activity (receipts) with cursor paging. view receipt: Get one STAR receipt and its activity view. receiptId comes from view activity. Needs receiptId. view statement: Get the caller's wallet postings with running balance for a window. Needs from, to. view seed_slots: List the caller's four seed slots and their seeds.
View balance: operation star_balance_get: GET /api/v1/star/balance.
View activity: operation star_activity_get: GET /api/v1/star/activity.
View receipt: operation star_activity_receipt_get: GET /api/v1/star/activity/{receiptId}.
View statement: operation star_account_statement_get: GET /api/v1/star/account-statement.
View seed_slots: operation star_seed_slots_get: GET /api/v1/star/seeds/my-slots.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"balance",
"activity",
"receipt",
"statement",
"seed_slots"
]
},
"from": {
"type": "string",
"format": "date-time",
"description": "Window start; default epoch. Unparseable values silently fall back to the default."
},
"to": {
"type": "string",
"format": "date-time",
"description": "Window end; default now. Unparseable values silently fall back to the default."
},
"type": {
"type": "string",
"description": "One of the 7 ReceiptType values (lib/star-ledger/types.ts)."
},
"cursor": {
"type": "string",
"description": "Opaque keyset cursor of the form '<occurredAt>|<receiptId>', taken from nextCursor."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50,
"description": "Non-positive or invalid values become 50; values above 100 are capped at 100."
},
"receiptId": {
"type": "string"
}
},
"required": [
"view"
],
"additionalProperties": false
}star_transfer
Transfer STAR (destructive)
Transfer STAR from the caller's wallet to another user. Moves STAR from the account to recipientId (from user_search). Confirm the recipient and amount with the person first.
Operation star_transfer_post: POST /api/v1/star/transfer.
Arguments
{
"type": "object",
"properties": {
"idempotencyKey": {
"type": "string",
"minLength": 1,
"description": "Global ledger idempotency key. Use a UUID."
},
"recipientId": {
"type": "string",
"minLength": 1,
"description": "Recipient user id. Not validated against existing users."
},
"amount": {
"type": "string",
"description": "Decimal STAR amount; minimum 0.01."
}
},
"required": [
"idempotencyKey",
"recipientId",
"amount"
],
"additionalProperties": false
}star_tip
Tip STAR (destructive)
Tip another user STAR with a required memo. A transfer with a required memo the recipient sees. Confirm the recipient and amount with the person first.
Operation star_tip_post: POST /api/v1/star/tip.
Arguments
{
"type": "object",
"properties": {
"idempotencyKey": {
"type": "string",
"minLength": 1
},
"recipientId": {
"type": "string",
"minLength": 1
},
"amount": {
"type": "string",
"description": "Decimal STAR; minimum 0.01."
},
"memo": {
"type": "string",
"minLength": 1,
"maxLength": 140
}
},
"required": [
"idempotencyKey",
"recipientId",
"amount",
"memo"
],
"additionalProperties": false
}job_get
Get a background job
Poll an async execution job. Poll every few seconds until data.status is completed, failed or expired. jobId comes from turn_execute_async.
Operation jobs_get: GET /api/v1/jobs/{jobId}.
Arguments
{
"type": "object",
"properties": {
"jobId": {
"type": "string"
}
},
"required": [
"jobId"
],
"additionalProperties": false
}world_list
Find and list worlds
Each returns the worldId the world tools take. view discover: Search the public world directory. Searches the public world directory; returns the worldId the world tools take. view managed: List all worlds related to the caller with management metadata. view default: Get the caller's default ('main') world context. view bookmarks: List the caller's world bookmarks. view publish_targets: List worlds the caller can publish into right now.
View discover: operation world_discovery_get: GET /api/v1/world/discovery.
View managed: operation world_management_get: GET /api/v1/world/management.
View default: operation world_default_context_get: GET /api/v1/world/default-context.
View bookmarks: operation world_bookmarks_get: GET /api/v1/world/bookmarks.
View publish_targets: operation world_publish_targets_get: GET /api/v1/world/publish-targets.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"discover",
"managed",
"default",
"bookmarks",
"publish_targets"
]
},
"query": {
"type": "string",
"description": "Free-text search; trimmed."
},
"ownerUsername": {
"type": "string"
},
"tag": {
"type": "string"
},
"publishMode": {
"type": "string",
"enum": [
"owner_only",
"members_with_publish",
"open_to_authenticated"
],
"description": "Passed through without validation."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "Out-of-range or non-numeric values fall back to 20 (not clamped)."
}
},
"required": [
"view"
],
"additionalProperties": false
}world_get
Read a world
view world: Get a world's detail and the caller's relationship to it. Needs worldId. view config: Get the owner's world settings surface and current config hash. Returns the configHash that world_update_config and world_set_prompt_policy take as baseConfigHash. Needs worldId. view environment: Get the world's Look & Feel selection and its options. Returns the current selection, the options a save accepts and the revision world_set_environment takes as baseRevision. Needs worldId. view prompt_policy: Get the world's effective prompt policy. Needs worldId. view members: List world memberships (a world's collaborators or your own). view invites: List pending world invites received by or sent from the caller.
View world: operation world_detail_get: GET /api/v1/world/{worldId}.
View config: operation world_config_get: GET /api/v1/world/{worldId}/config.
View environment: operation world_environment_get: GET /api/v1/world/{worldId}/environment.
View prompt_policy: operation world_prompt_policy_get: GET /api/v1/world/{worldId}/prompt-policy.
View members: operation world_memberships_get: GET /api/v1/world/memberships.
View invites: operation world_invites_get: GET /api/v1/world/invites.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"world",
"config",
"environment",
"prompt_policy",
"members",
"invites"
]
},
"worldId": {
"type": "string"
},
"perspective": {
"type": "string",
"enum": [
"received",
"sent"
]
}
},
"required": [
"view"
],
"additionalProperties": false
}world_create
Create a world
Provision an additional world for the calling owner.
Operation world_provision_post: POST /api/v1/world.
Arguments
{
"type": "object",
"properties": {
"worldName": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,31}$",
"description": "Trimmed before validation; 'main' is reserved."
}
},
"required": [
"worldName"
],
"additionalProperties": false
}world_add_bookmark
Bookmark a world
Bookmark a world.
Operation world_bookmarks_post: POST /api/v1/world/bookmarks.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string",
"minLength": 1,
"description": "Trimmed; must be a string (a non-string value causes a 500)."
}
},
"required": [
"worldId"
],
"additionalProperties": false
}world_remove_bookmark
Remove a bookmark (destructive)
Remove a world bookmark.
Operation world_bookmarks_delete: DELETE /api/v1/world/bookmarks.
Arguments
{
"type": "object",
"properties": {
"bookmarkId": {
"type": "string",
"minLength": 1
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"bookmarkId"
],
"additionalProperties": false
}world_update_config
Update world settings
Apply a JSON Patch to the world config with optimistic concurrency. patch is a JSON Patch against the config from world_get view config; baseConfigHash must be its configHash.
Operation world_config_patch: PATCH /api/v1/world/{worldId}/config.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"patch": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"op": {
"type": "string",
"enum": [
"add",
"remove",
"replace",
"move",
"copy",
"test"
]
},
"path": {
"type": "string"
},
"value": {},
"from": {
"type": "string"
}
},
"required": [
"op",
"path"
]
}
},
"baseConfigHash": {
"type": "string"
},
"idempotencyKey": {
"type": "string",
"description": "Must be a string; an empty string is replaced by a random UUID."
},
"source": {
"type": "string",
"enum": [
"owner_api",
"owner_settings_ui"
],
"description": "Any other string is coerced to owner_settings_ui."
}
},
"required": [
"worldId",
"patch",
"baseConfigHash",
"idempotencyKey"
],
"additionalProperties": false
}world_set_environment
Set world look and feel
Save the world's Look & Feel selection. Choose a mode and values from the options of world_get view environment; baseRevision must be its revision.
Operation world_environment_put: PUT /api/v1/world/{worldId}/environment.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"baseRevision": {
"type": "integer",
"minimum": 0,
"description": "revision from world_environment_get."
},
"selection": {
"type": "object",
"description": "mode and the fields fieldsByMode lists for it. An omitted mode keeps the current mode.",
"properties": {
"mode": {
"type": "string",
"enum": [
"pack",
"splat",
"custom"
]
},
"packRef": {
"type": "string",
"description": "One of options.packRef."
},
"splatRef": {
"type": "string",
"description": "One of options.splatRef.mine or options.splatRef.all."
},
"backgroundProgram": {
"type": "string",
"description": "One of options.backgroundProgram."
},
"activeBundle": {
"type": "string",
"description": "One of options.activeBundle."
},
"ambientMode": {
"type": "string",
"enum": [
"off",
"passive",
"active"
]
},
"creaturesEnabled": {
"type": "boolean"
},
"showNodes": {
"type": "boolean"
},
"showHemisphereMesh": {
"type": "boolean"
},
"meshOpacity": {
"type": "number",
"minimum": 0,
"maximum": 1
}
}
},
"requestId": {
"type": "string",
"description": "Optional id recorded on the action's audit record; generated when absent."
}
},
"required": [
"worldId",
"baseRevision",
"selection"
],
"additionalProperties": false
}world_update_identity
Rename or describe a world
Update a world's display name, description, or persona title. Send at least one of: displayName, description, worldPersonaTitle.
Operation world_identity_patch: PATCH /api/v1/world/{worldId}/identity.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"displayName": {
"type": [
"string",
"null"
],
"description": "Trimmed; null or blank resets to the world name."
},
"description": {
"type": [
"string",
"null"
],
"description": "Trimmed; null clears."
},
"worldPersonaTitle": {
"oneOf": [
{
"type": "string",
"enum": [
"Narrator",
"Keeper",
"Curator",
"Steward",
"Bard",
"Jester"
]
},
{
"type": "null"
}
],
"description": "Trimmed then must match exactly; empty string is rejected (use null to clear)."
}
},
"required": [
"worldId"
],
"additionalProperties": false
}world_set_prompt_policy
Set the world prompt policy
Replace the world's prompt policy text.
Operation world_prompt_policy_put: PUT /api/v1/world/{worldId}/prompt-policy.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"baseConfigHash": {
"type": "string"
},
"promptText": {
"type": "string",
"minLength": 1,
"maxLength": 2500,
"description": "Length checked after trimming."
}
},
"required": [
"worldId",
"baseConfigHash",
"promptText"
],
"additionalProperties": false
}world_set_lifecycle
Pause, resume or archive a world
Pause, resume or archive a world you own.
Operation world_lifecycle_post: POST /api/v1/world/{worldId}/lifecycle.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"pause",
"resume",
"archive"
]
},
"reason": {
"type": "string",
"description": "Optional, trimmed."
},
"evidenceRefs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Non-string entries are dropped."
}
},
"required": [
"worldId",
"action"
],
"additionalProperties": false
}world_delete
Delete a world (destructive)
Delete an archived world you own. Archive it first with world_set_lifecycle.
Operation world_lifecycle_post: POST /api/v1/world/{worldId}/lifecycle.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"reason": {
"type": "string",
"description": "Optional, trimmed."
},
"evidenceRefs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Non-string entries are dropped."
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"worldId"
],
"additionalProperties": false
}world_invite_person
Invite someone to a world
Invite a user to a world you own. Name the person by invitedUserId or invitedUsername (from user_search). Send at least one of: worldId, worldHandle.
Operation world_invites_post: POST /api/v1/world/invites.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string",
"description": "Preferred over worldHandle."
},
"worldHandle": {
"type": "string",
"description": "@ownerUsername/worldName (leading @ optional)."
},
"invitedUserId": {
"type": "string",
"description": "Directory-resolved platform user id; tried first."
},
"invitedUsername": {
"type": "string",
"description": "Leading @ stripped; matched case-insensitively against username, display_name, contact_email, or user_id."
},
"proposedRole": {
"type": "string",
"enum": [
"viewer",
"editor"
]
},
"message": {
"type": [
"string",
"null"
]
},
"expiresAt": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "Not validated by the handler; an unparseable value fails at the database (500)."
}
},
"required": [
"proposedRole"
],
"additionalProperties": false
}world_respond_to_invite
Accept or decline a world invite
Accept or decline a world invite you received. Accepting makes you a member with the proposed role. inviteId comes from world_get view invites.
Operation world_invite_lifecycle_patch: PATCH /api/v1/world/invites/{inviteId}.
Not offered: reason (Used only to revoke; world_revoke_invite sends it.)
Arguments
{
"type": "object",
"properties": {
"inviteId": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"accept",
"decline"
]
}
},
"required": [
"inviteId",
"action"
],
"additionalProperties": false
}world_revoke_invite
Revoke a world invite (destructive)
Revoke a world invite you sent, or mark an overdue one expired.
Operation world_invite_lifecycle_patch: PATCH /api/v1/world/invites/{inviteId}.
Arguments
{
"type": "object",
"properties": {
"inviteId": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"revoke",
"expire"
]
},
"reason": {
"type": [
"string",
"null"
],
"description": "Used only for revoke."
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"inviteId",
"action"
],
"additionalProperties": false
}world_remove_member
Remove a world member (destructive)
Revoke a collaborator's membership in a world you own.
Operation world_membership_revoke_delete: DELETE /api/v1/world/memberships.
Not offered: reason (The contract states the handler ignores it.)
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string",
"minLength": 1
},
"userId": {
"type": "string",
"minLength": 1,
"description": "Member to revoke."
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"worldId",
"userId"
],
"additionalProperties": false
}world_leave
Leave a world (destructive)
Leave a world you are a member of.
Operation world_membership_leave_post: POST /api/v1/world/memberships/leave.
Not offered: reason (The contract states the handler ignores it.)
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string",
"minLength": 1
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"worldId"
],
"additionalProperties": false
}world_search
Search a world
Search a world's graph for candidate refs (external agent). Ranked refs for a natural-language query. To find entities, settings or stories, set mediaType to ent, set or txt and read each ref with world_get_content, view entity, setting or textroot. worldId comes from world_list.
Operation world_query: POST /api/v1/world/{worldId}/query.
Not offered: retrievalDepth (The contract states the search validates it but does not use it.)
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"query": {
"type": "string",
"minLength": 1
},
"maxResults": {
"type": "integer",
"minimum": 1,
"default": 50,
"description": "Clamped to 200 by the search."
},
"scope": {
"type": "string",
"enum": [
"mine",
"all"
],
"default": "all"
},
"mediaType": {
"type": "string",
"enum": [
"ent",
"set",
"txt",
"img",
"vid",
"aud",
"obj",
"topic"
],
"description": "Search only refs with this prefix: ent (entities), set (settings), txt (stories), or the media kinds img, vid, aud, obj and topic. Omitted, every kind is ranked together and images dominate."
},
"requestId": {
"type": "string"
}
},
"required": [
"worldId",
"query"
],
"additionalProperties": false
}world_consult
Ask a world
Run a synchronous world consult turn (external agent). A consult turn that answers from the world without changing it. idempotencyKey is any unique string per question.
Operation world_consult_sync: POST /api/v1/world/{worldId}/consult.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"layers": {
"type": "string",
"description": "Comma-separated wire layers; same semantics as /execute."
},
"idempotencyKey": {
"type": "string",
"minLength": 1
},
"idempotencyTtlMs": {
"type": "number"
},
"requestId": {
"type": "string"
},
"sessionId": {
"type": "string"
},
"userMessage": {
"type": "string",
"minLength": 1,
"description": "Required either here or in payload.userMessage."
},
"worldScope": {
"oneOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"minLength": 1
}
}
],
"description": "Passed into the HAM intent input as world_scope."
},
"worldSetRef": {
"type": "string",
"minLength": 1,
"description": "Passed into the HAM intent input as world_set_ref."
},
"payload": {
"type": "object",
"properties": {
"userMessage": {
"type": "string"
},
"worldScope": {},
"worldSetRef": {
"type": "string"
}
}
}
},
"required": [
"worldId",
"idempotencyKey"
],
"additionalProperties": false
}world_get_content
Read a world's entities, settings and stories
view entities: List a world's featured entities ranked by narrative reach. view entity: Get a world entity's compiled profile. ref comes from world_search or view entities. Needs ref. view setting: Get a world setting's compiled profile. ref comes from world_search. Needs ref. view textroot: Get the compiled profile of a TextRoot in a world. A published story (TextRoot). ref comes from world_search. Needs ref.
View entities: operation entity_list: GET /api/v1/world/{worldId}/entities.
View entity: operation entity_get: GET /api/v1/world/{worldId}/entities/{ref}.
View setting: operation setting_get: GET /api/v1/world/{worldId}/settings/{ref}.
View textroot: operation textroot_get: GET /api/v1/world/{worldId}/textroots/{ref}.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"entities",
"entity",
"setting",
"textroot"
]
},
"worldId": {
"type": "string"
},
"rank": {
"type": "string",
"enum": [
"reach",
"weight"
],
"default": "reach",
"description": "weight is a legacy alias for reach."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 5,
"description": "Must be an integer 1-50."
},
"ref": {
"type": "string"
}
},
"required": [
"view",
"worldId"
],
"additionalProperties": false
}gap_list
List story gaps
List gap coordinates as feed entries. Places where the world needs a story; a gap id is what bounty_post (sourceGapId) and gap_stake_star (gapId) take.
Operation world_gaps_get: GET /api/v1/world/{worldId}/gaps.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"cursor": {
"type": "string",
"description": "Numeric offset string from the previous response."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 50
},
"minDiscrepancy": {
"type": "number",
"description": "0 is ignored."
},
"minSignificance": {
"type": "number",
"description": "Post-filter; 0 is ignored."
},
"anchorRef": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"open",
"filled",
"candidate",
"stale",
"archived"
],
"description": "Only open and filled ever return results; agent_readable and public_feed carry open gaps only."
},
"surface": {
"type": "string",
"enum": [
"internal_topology",
"agent_readable",
"public_feed"
],
"description": "Defaults to internal_topology for human callers and agent_readable for external agents; external agents cannot read internal_topology."
}
},
"required": [
"worldId"
],
"additionalProperties": false
}gap_set_visibility
Set gap visibility
Set a gap coordinate's visibility (world owner).
Operation world_gaps_visibility_post: POST /api/v1/world/{worldId}/gaps.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"gapId": {
"type": "string",
"minLength": 1
},
"visibility": {
"type": "string",
"enum": [
"internal_topology",
"agent_readable",
"public_feed"
]
}
},
"required": [
"worldId",
"gapId",
"visibility"
],
"additionalProperties": false
}turn_get_surface
Get a turn result
Get the persisted emission surface for a world turn.
Operation world_turn_surface_get: GET /api/v1/world/{worldId}/turns/{turnId}/surface.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"turnId": {
"type": "string"
},
"layers": {
"type": "string",
"description": "Project the surface to these layers; identity is always included."
},
"include": {
"type": "string",
"description": "Comma-separated; 'proof' attaches worldProof."
},
"surfaceRef": {
"type": "string",
"description": "Storage key of a specific surface bundle; must match a recorded artifact for this world+turn, otherwise 404."
}
},
"required": [
"worldId",
"turnId"
],
"additionalProperties": false
}session_get
Read a session
view messages: Read the durable transcript of a world chat session. view turns: List turns with stored surfaces for a session.
View messages: operation world_session_messages_get: GET /api/v1/world/{worldId}/sessions/{sessionId}/messages.
View turns: operation world_session_turns_get: GET /api/v1/world/{worldId}/sessions/{sessionId}/turns.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"messages",
"turns"
]
},
"worldId": {
"type": "string"
},
"sessionId": {
"type": "string"
}
},
"required": [
"view",
"worldId",
"sessionId"
],
"additionalProperties": false
}turn_execute
Talk to a world
Run a synchronous world chat turn as an external agent or persona. One world chat turn; the reply is data.output.surface.text.clean, and data.sessionId continues the conversation. idempotencyKey is any unique string per turn. For long turns use turn_execute_async.
Operation world_execute_sync: POST /api/v1/world/{worldId}/execute.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"layers": {
"type": "string",
"description": "Comma-separated subset of identity,text,refs,media,context,topology,epistemic,session. identity is always included and unknown names are ignored. When present, data.output.surface becomes a WireEmissionSurfaceProjection."
},
"idempotencyKey": {
"type": "string",
"minLength": 1,
"description": "Required. A body field, not a header. Scoped per actor; the fingerprint covers method, route, and a hash of {mode, sessionId, payload}."
},
"idempotencyTtlMs": {
"type": "number",
"description": "Replay-cache TTL in ms; default 300000; not bounded."
},
"requestId": {
"type": "string"
},
"sessionId": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"kind",
"userMessage"
],
"properties": {
"kind": {
"const": "inference_turn"
},
"userMessage": {
"type": "string",
"minLength": 1
},
"flowId": {
"type": "string"
},
"flowInput": {
"type": "object"
},
"classification": {}
}
},
"userMessage": {
"type": "string",
"description": "Top-level alternative to payload.userMessage."
},
"flowId": {
"type": "string",
"description": "Forwarded to the HAM input but does not choose the executed flow."
},
"flowInput": {
"type": "object"
},
"classification": {}
},
"required": [
"worldId",
"idempotencyKey"
],
"additionalProperties": false
}turn_execute_async
Talk to a world in the background
Enqueue an asynchronous world chat turn and get a pollable job. Returns data.jobId at once; poll it with job_get.
Operation world_execute_async: POST /api/v1/world/{worldId}/execute/async.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"idempotencyKey": {
"type": "string",
"minLength": 1
},
"idempotencyTtlMs": {
"type": "number"
},
"requestId": {
"type": "string"
},
"sessionId": {
"type": "string"
},
"webhookUrl": {
"type": "string",
"format": "uri",
"description": "Must be https, not localhost or loopback, and not a 10.x, 172.16-31.x, or 192.168.x address. Stored on the job record but never delivered (see notes)."
},
"payload": {
"type": "object",
"required": [
"kind",
"userMessage"
],
"properties": {
"kind": {
"const": "inference_turn"
},
"userMessage": {
"type": "string",
"minLength": 1
},
"flowId": {
"type": "string"
},
"flowInput": {
"type": "object"
},
"classification": {}
}
},
"userMessage": {
"type": "string"
},
"flowId": {
"type": "string"
},
"flowInput": {
"type": "object"
},
"classification": {}
},
"required": [
"worldId",
"idempotencyKey"
],
"additionalProperties": false
}persona_direct
Direct a persona
Run a bounded persona directive (inference turn) in a world.
Operation direct_persona: POST /api/v1/world/{worldId}/directive.
Not offered: provenance (The contract states the server overwrites it with the caller's identity.)
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"directiveId": {
"type": "string",
"minLength": 1
},
"intent": {
"type": "string",
"minLength": 1,
"description": "Trimmed before validation."
},
"anchors": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(ent|set|txt):"
},
"description": "Graph refs to anchor the turn; may be empty but must be present (or supplied as anchorRefs). Each must exist (matched on node.ref) or the directive is rejected."
},
"anchorRefs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Alias; copied into anchors when anchors is absent or empty."
},
"mode": {
"type": "string",
"enum": [
"answer",
"explore",
"bridge",
"canonize",
"fill",
"synthesize"
],
"description": "fill maps to answer and synthesize maps to canonize."
},
"bounds": {
"type": "object",
"required": [
"maxTurns",
"maxTokens",
"timeoutMs"
],
"properties": {
"maxTurns": {
"type": "integer",
"minimum": 1,
"maximum": 10
},
"maxTokens": {
"type": "integer",
"minimum": 100,
"maximum": 50000
},
"timeoutMs": {
"type": "integer",
"minimum": 1000,
"maximum": 300000
}
},
"default": {
"maxTurns": 1,
"maxTokens": 10000,
"timeoutMs": 60000
}
}
},
"required": [
"worldId",
"directiveId",
"intent",
"anchors"
],
"additionalProperties": false
}huelva_ask
Ask Huelva
Ask Huelva to research the owner's worlds and answer from the evidence she reads. Asking changes nothing in a world. Name a world by its handle (@owner/world) in the question, or send its worldId from world_list, and send the same worldId, or none, on follow-ups to keep the conversation. shell.result.kind says what came back: resolution (an answer with citations), clarification (a question your next ask answers), honest_insufficiency (the evidence does not support an answer), or staged work, as responseKind proposal with a confirm or as a plan with a planId, decided with huelva_followthrough. An ask can take minutes.
Operation huelva_ask_or_followthrough: POST /api/v1/huelva.
Arguments
{
"type": "object",
"properties": {
"huelvaAsk": {
"type": "object",
"properties": {
"userMessage": {
"type": "string",
"minLength": 1
},
"requestId": {
"type": "string"
}
},
"required": [
"userMessage"
]
},
"worldId": {
"type": "string",
"minLength": 1,
"description": "The world the ask is about. Omitted, Huelva works from her home advisory session. A world the owner cannot read answers 404 before Huelva runs."
},
"requestId": {
"type": "string",
"description": "Source request id; huelvaAsk.requestId wins. Default 'huelva_api_<uuid>'. A repeated user_message with the same id replays the committed answer."
},
"requestIdentity": {
"type": "object",
"properties": {
"workstreamId": {
"type": "string",
"minLength": 1
},
"sourceRevision": {
"type": "integer",
"minimum": 0
},
"ownerReadReplay": {
"type": "object",
"description": "Requires workstreamId. Required: evidenceSetDigest, capabilityRef, owner{kind: hub_flow(packageRef, flowId) | direct_owner(ownerFamily, executionClass consult|execute), operationRef, loweringRef}, subjectRef, subjectKind. Optional: flowId, query, lookupQuery, mode, subjectLabel, continuationFocusWorldId, asOfEventId, latestKnownEventId."
}
}
},
"researchActivation": {
"type": "object",
"additionalProperties": false,
"required": [
"mode"
],
"properties": {
"mode": {
"enum": [
"ordinary_huelva",
"clean_research"
]
},
"continuation": {
"description": "Allowed only when mode is clean_research.",
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"const": "open_or_retry"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"branchRef",
"authority",
"authorityEffect"
],
"properties": {
"kind": {
"const": "continue_branch"
},
"branchRef": {
"type": "string",
"minLength": 1
},
"continuedFromRunRef": {
"type": "string",
"minLength": 1
},
"authority": {
"const": "explicit_user_followup"
},
"authorityEffect": {
"enum": [
"control_only",
"user_amendment"
]
}
}
}
]
}
}
}
},
"required": [
"huelvaAsk"
],
"additionalProperties": false
}huelva_followthrough
Decide what Huelva staged (destructive)
Approve, reject, check, or retry a proposal or plan Huelva staged, or follow up on an outcome. Only after the person has decided: for a proposal, send the huelvaAsk of a huelva_ask result's confirm.approveBody or confirm.rejectBody unchanged; for a plan, send kind plan_followthrough with shell.result.plan.planId. approve runs the staged work in the owner's worlds; status reads where it stands.
Operation huelva_ask_or_followthrough: POST /api/v1/huelva.
Not offered: researchActivation (Research activation applies to user_message asks; every follow-through runs ordinary Huelva (classifyResearchActivation).)
Arguments
{
"type": "object",
"properties": {
"huelvaAsk": {
"oneOf": [
{
"type": "object",
"required": [
"kind",
"proposalId",
"requestedAction"
],
"properties": {
"kind": {
"const": "proposal_followthrough"
},
"proposalId": {
"type": "string",
"minLength": 1
},
"requestedAction": {
"enum": [
"approve",
"reject",
"status",
"retry_failed_remainder"
]
},
"requestId": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"kind",
"planId",
"requestedAction"
],
"properties": {
"kind": {
"const": "plan_followthrough"
},
"planId": {
"type": "string",
"minLength": 1
},
"requestedAction": {
"enum": [
"approve",
"reject",
"status",
"retry_failed_remainder"
]
},
"requestId": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"kind",
"outcomeRef"
],
"properties": {
"kind": {
"const": "outcome_followthrough"
},
"outcomeRef": {
"type": "string",
"minLength": 1
},
"requestId": {
"type": "string"
}
}
}
]
},
"worldId": {
"type": "string",
"minLength": 1,
"description": "The world the ask is about. Omitted, Huelva works from her home advisory session. A world the owner cannot read answers 404 before Huelva runs."
},
"requestId": {
"type": "string",
"description": "Source request id; huelvaAsk.requestId wins. Default 'huelva_api_<uuid>'. A repeated user_message with the same id replays the committed answer."
},
"requestIdentity": {
"type": "object",
"properties": {
"workstreamId": {
"type": "string",
"minLength": 1
},
"sourceRevision": {
"type": "integer",
"minimum": 0
},
"ownerReadReplay": {
"type": "object",
"description": "Requires workstreamId. Required: evidenceSetDigest, capabilityRef, owner{kind: hub_flow(packageRef, flowId) | direct_owner(ownerFamily, executionClass consult|execute), operationRef, loweringRef}, subjectRef, subjectKind. Optional: flowId, query, lookupQuery, mode, subjectLabel, continuationFocusWorldId, asOfEventId, latestKnownEventId."
}
}
}
},
"required": [
"huelvaAsk"
],
"additionalProperties": false
}room_list
List my rooms
List the caller's chat rooms and inbox counters. The owner's rooms. Reading or posting a room's conversation acts as this connection's own participant, agent:<keyId>, which must have been added to the room; managing a room acts as the owner.
Operation chat_launcher_get: GET /api/v1/chat/launcher.
Arguments
{
"type": "object",
"properties": {},
"additionalProperties": false
}room_open
Open a room
Open a chat room (or reuse the open direct line) as the authenticated user. roomHomeWorldId is a world from world_list; a direct line to the same people is reused rather than opened twice.
Operation chat_initiate_post: POST /api/v1/chat/initiate.
Arguments
{
"type": "object",
"properties": {
"mode": {
"enum": [
"direct_line",
"explicit_room"
],
"default": "direct_line"
},
"roomHomeWorldId": {
"type": "string",
"description": "Must equal the initiator's provisioned chat world id (400 otherwise)."
},
"roomHomeOwnerUserId": {
"type": "string",
"description": "Must equal the authenticated initiator userId (400 otherwise)."
},
"foundingParticipants": {
"type": "array",
"items": {
"type": "string"
},
"description": "Participant address refs. Must normalize to at least one entry (500 otherwise)."
},
"title": {
"type": "string"
},
"initialActorSelector": {
"type": "string",
"pattern": "^(human|persona|agent):"
},
"initialGrantRef": {
"type": "string"
},
"targetAddressKind": {
"enum": [
"user",
"persona",
"external_agent"
],
"description": "Defaults to 'user' when foundingParticipants has more than one entry (and to 'user' in direct_line mode inside the service)."
},
"apiAccessGrantRef": {
"type": "string",
"description": "Validated only when targetAddressKind is external_agent; inactive or missing yields 422."
},
"firstMessageText": {
"type": "string"
},
"firstMessageAttachments": {
"type": "array",
"items": {
"type": "object",
"required": [
"mediaKind",
"payloadRef"
],
"properties": {
"attachmentRef": {
"type": "string"
},
"mediaKind": {
"enum": [
"file",
"image",
"audio",
"video",
"voice_note",
"link_preview"
]
},
"payloadRef": {
"type": "string"
},
"previewRef": {
"type": "string"
},
"transcriptRef": {
"type": "string"
},
"processingState": {
"enum": [
"pending",
"available",
"failed",
"removed"
]
}
}
}
}
},
"required": [
"roomHomeWorldId",
"roomHomeOwnerUserId",
"foundingParticipants"
],
"additionalProperties": false
}room_open_world_line
Open a world's line
Open (reuse, create, or repair) the caller's world-line room for a world. admittedWorldId comes from world_list.
Operation chat_world_line_post: POST /api/v1/chat/world-line.
Arguments
{
"type": "object",
"properties": {
"admittedWorldId": {
"type": "string",
"minLength": 1
},
"requestId": {
"type": "string",
"description": "Echoed as mutationRef; not used for deduplication."
}
},
"required": [
"admittedWorldId"
],
"additionalProperties": false
}room_get
Read a room
view room: Read the room head (session, participants, latest event pointers). view management: Read the room management surface (participants, worlds, grants, invites). The participantRef, roomGrantRef, inviteId and importedVoiceId values the room management tools take. view callable: Read who and what can be addressed in the room. targetParticipantRef and targetImportedVoiceId for room_continue come from here. view signals: List live presence, composing, and delivery signals. view addons: Read room add-on state (attendant, reactive cues, optional Huelva overlay). view feed: Read or stream the canonical room feed (tail, resume after an event id, or follow live). To follow a room, send the last eventId you read as afterEventId.
View room: operation chat_room_get: GET /api/v1/chat/rooms/{chatRoomId}.
View management: operation chat_room_management_get: GET /api/v1/chat/rooms/{chatRoomId}/management.
View callable: operation chat_room_callable_state_get: GET /api/v1/chat/rooms/{chatRoomId}/callable-state.
View signals: operation chat_room_signals_get: GET /api/v1/chat/rooms/{chatRoomId}/signals.
View addons: operation chat_room_addons_get: GET /api/v1/chat/rooms/{chatRoomId}/addons.
View feed: operation chat_room_feed_get: GET /api/v1/chat/rooms/{chatRoomId}/feed.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"room",
"management",
"callable",
"signals",
"addons",
"feed"
]
},
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"includeHuelva": {
"enum": [
"1",
"true"
],
"description": "Include the Huelva overlay. Any other value is false."
},
"includeHuelvaHistory": {
"enum": [
"1",
"true"
],
"description": "Include the requester's private Huelva exchange history."
},
"activeWorldId": {
"type": "string",
"description": "World hint. Dropped silently unless the principal can read it (world policy)."
},
"denialClass": {
"const": "chat_continuation_stale_handle",
"description": "Server denial replay. Requires sourceMessageId and one target param."
},
"sourceMessageId": {
"type": "string",
"description": "For denial replay."
},
"targetParticipantRef": {
"type": "string",
"description": "For denial replay."
},
"targetImportedVoiceId": {
"type": "string",
"description": "For denial replay."
},
"targetIntroductionRef": {
"type": "string",
"description": "For denial replay."
},
"asOfEventId": {
"type": "string",
"description": "For denial replay."
},
"limit": {
"type": "number",
"exclusiveMinimum": 0,
"default": 200,
"maximum": 500,
"description": "Positive number (400 otherwise). Silently clamped to [1, 500]. Validated before authentication. A stream validates it but does not use it."
},
"afterEventId": {
"type": "string",
"description": "Resume anchor; events strictly after it. A stream starts after it; Last-Event-ID takes precedence."
},
"mentions": {
"type": "string",
"enum": [
"self"
],
"description": "self keeps the message.created events another participant posted whose mentionRefs address the caller's participantRef (a room link's seat). Any other value answers 400. The filter applies after the page is scanned, so feed.nextAfterEventId still covers every scanned event. On a stream it filters the canonical events the same way and suppresses the live reply events; feed_close carries the stream's cursor as its id, so reconnecting from it does not rescan events already filtered out."
}
},
"required": [
"view",
"chatRoomId"
],
"additionalProperties": false
}room_get_history
Read room history
Page through room history by range (latest, after, before, around).
Operation chat_room_history_get: GET /api/v1/chat/rooms/{chatRoomId}/history.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"rangeKind": {
"enum": [
"latest",
"after_event",
"before_event",
"around_event"
],
"default": "latest",
"description": "Validated before authentication."
},
"limit": {
"type": "integer",
"exclusiveMinimum": 0,
"default": 50,
"maximum": 200,
"description": "For latest, after_event, and before_event. Truncated to an integer and clamped to 200 by the service."
},
"afterEventId": {
"type": "string",
"description": "Required for after_event."
},
"beforeEventId": {
"type": "string",
"description": "Required for before_event."
},
"anchorEventId": {
"type": "string",
"description": "Required for around_event."
},
"beforeLimit": {
"type": "integer",
"exclusiveMinimum": 0,
"default": 20,
"description": "around_event only; not clamped."
},
"afterLimit": {
"type": "integer",
"exclusiveMinimum": 0,
"default": 20,
"description": "around_event only; not clamped."
},
"asOfEventId": {
"type": "string",
"description": "Bound the view to events up to this id."
}
},
"required": [
"chatRoomId"
],
"additionalProperties": false
}room_search
Search room messages
view room: Search messages in one room. Needs chatRoomId. view rooms: Search messages across the caller's visible rooms (or one room).
View room: operation chat_room_search_get: GET /api/v1/chat/rooms/{chatRoomId}/search.
View rooms: operation chat_search_get: GET /api/v1/chat/search.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"room",
"rooms"
]
},
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"queryText": {
"type": "string",
"minLength": 1,
"description": "Trimmed substring; % and _ are escaped."
},
"limit": {
"type": "integer",
"exclusiveMinimum": 0,
"default": 20,
"maximum": 100,
"description": "Positive number (400 otherwise); truncated; clamped to 100 by the service."
},
"beforeOccurredAt": {
"type": "string",
"format": "date-time",
"description": "Exclusive upper bound; use page.nextCursor."
},
"matchKind": {
"type": "array",
"items": {
"enum": [
"body",
"attachment",
"annotation",
"participant"
]
},
"description": "Repeatable. Unknown values are dropped silently; empty means all kinds (normalizeMatchKinds)."
},
"scope": {
"type": "string",
"enum": [
"visible_rooms",
"room"
],
"description": "'visible_rooms', or anything else for room scope. Omitted: visible_rooms unless chatRoomId is set."
}
},
"required": [
"view",
"queryText"
],
"additionalProperties": false
}room_search_people
Find people to invite to a room
Typeahead search for users to invite. invitedUserId for room_invite comes from here.
Operation chat_users_search_get: GET /api/v1/chat/users/search.
Arguments
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "Trimmed; empty returns {users: []}."
},
"limit": {
"type": "integer",
"default": 8,
"minimum": 1,
"maximum": 25,
"description": "Non-numeric or 0 means 8; clamped to [1, 25] by the service."
}
},
"additionalProperties": false
}room_continue
Take a turn in a room
Post a room turn and run the room's computed reply (or route to Huelva). Posts your message and runs the room's reply. To post without a reply use room_post_message; to decide what Huelva staged use room_huelva_followthrough.
Operation chat_room_continue_post: POST /api/v1/chat/rooms/{chatRoomId}/continue.
Not offered: operations (Continue never applies message operations (ChatRoomService.continueRoom); room_post_message and room_delete_message do.); lane (Selects the Huelva confirm branch, which forwards to the same handler room_huelva_followthrough calls.); confirmPlaneId (Part of the Huelva confirm branch; room_huelva_followthrough sends the decision.); proposalId (Part of the Huelva confirm branch; room_huelva_followthrough sends the decision.); decision (Part of the Huelva confirm branch; room_huelva_followthrough sends the decision.)
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"continuationKind": {
"enum": [
"message_only",
"computed"
],
"default": "computed"
},
"sourceMessageId": {
"type": "string",
"description": "Continue or retry from an existing room message. With computed, any authored field (text, attachments, operations, messageKind, quoteTargetMessageId, mentionRefs, metadata) causes a 500. Room-link callers always carry injected metadata, so they always hit this."
},
"text": {
"type": "string",
"description": "Parsed for private-lane addressing first (see description)."
},
"messageKind": {
"enum": [
"text",
"command",
"note",
"review_note",
"system"
],
"description": "Not validated by the route."
},
"replyToMessageId": {
"type": "string"
},
"metadata": {
"type": "object",
"description": "Non-object values are dropped."
},
"targetParticipantRef": {
"type": "string"
},
"targetImportedVoiceId": {
"type": "string"
},
"targetIntroductionRef": {
"type": "string"
},
"dialogueScene": {
"type": "object",
"required": [
"handles",
"turnCap"
],
"properties": {
"handles": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "standing_participant"
},
"participantRef": {
"type": "string"
}
},
"required": [
"kind",
"participantRef"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "imported_voice"
},
"importedVoiceId": {
"type": "string"
}
},
"required": [
"kind",
"importedVoiceId"
]
}
]
}
},
"turnCap": {
"type": "integer"
}
}
},
"quoteTargetMessageId": {
"type": "string"
},
"mentionRefs": {
"type": "array",
"items": {
"type": "string"
}
},
"attachments": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"mediaKind",
"payloadRef"
],
"properties": {
"attachmentRef": {
"type": "string"
},
"mediaKind": {
"enum": [
"image",
"video",
"audio",
"document",
"file",
"voice_note",
"link_preview"
]
},
"payloadRef": {
"type": "string"
},
"previewRef": {
"type": "string"
},
"transcriptRef": {
"type": "string"
},
"processingState": {
"enum": [
"pending",
"available",
"failed",
"removed"
]
}
}
},
{
"type": "object",
"required": [
"mediaKind",
"sourcePlaylistId",
"expectedSourceRevision"
],
"properties": {
"mediaKind": {
"const": "kslp_playlist"
},
"sourcePlaylistId": {
"type": "string"
},
"expectedSourceRevision": {
"type": "integer"
}
}
}
]
},
"description": "kslp_playlist attachments combined with sourceMessageId return 400."
}
},
"required": [
"chatRoomId"
],
"additionalProperties": false
}room_post_message
Post to a room
Post a room message without a reply, or react to, pin or edit messages. Deleting is room_delete_message.
Operation chat_room_messages_post: POST /api/v1/chat/rooms/{chatRoomId}/messages.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"text": {
"type": "string",
"description": "Trimmed. Text or at least one attachment is required unless operations is non-empty. Not parsed for Huelva lanes here."
},
"messageKind": {
"enum": [
"text",
"command",
"note",
"review_note",
"system"
],
"default": "text",
"description": "Not validated by the route."
},
"replyToMessageId": {
"type": "string"
},
"quoteTargetMessageId": {
"type": "string"
},
"mentionRefs": {
"type": "array",
"items": {
"type": "string"
}
},
"metadata": {
"type": "object",
"description": "Non-object values are dropped."
},
"attachments": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"mediaKind",
"payloadRef"
],
"properties": {
"attachmentRef": {
"type": "string"
},
"mediaKind": {
"enum": [
"image",
"video",
"audio",
"document",
"file",
"voice_note",
"link_preview"
]
},
"payloadRef": {
"type": "string"
},
"previewRef": {
"type": "string"
},
"transcriptRef": {
"type": "string"
},
"processingState": {
"enum": [
"pending",
"available",
"failed",
"removed"
]
}
}
},
{
"type": "object",
"required": [
"mediaKind",
"sourcePlaylistId",
"expectedSourceRevision"
],
"properties": {
"mediaKind": {
"const": "kslp_playlist"
},
"sourcePlaylistId": {
"type": "string"
},
"expectedSourceRevision": {
"type": "integer"
}
}
}
]
}
},
"operations": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"kind",
"targetMessageId",
"emoji"
],
"properties": {
"kind": {
"const": "reaction"
},
"targetMessageId": {
"type": "string"
},
"emoji": {
"type": "string"
},
"action": {
"enum": [
"add",
"remove"
]
}
}
},
{
"type": "object",
"required": [
"kind",
"targetMessageId",
"pinned"
],
"properties": {
"kind": {
"const": "pin"
},
"targetMessageId": {
"type": "string"
},
"pinned": {
"type": "boolean"
}
}
},
{
"type": "object",
"required": [
"kind",
"targetMessageId",
"text"
],
"properties": {
"kind": {
"const": "edit"
},
"targetMessageId": {
"type": "string"
},
"text": {
"type": "string"
},
"mentionRefs": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
]
}
}
},
"required": [
"chatRoomId"
],
"additionalProperties": false
}room_delete_message
Delete room messages (destructive)
Delete room messages.
Operation chat_room_messages_post: POST /api/v1/chat/rooms/{chatRoomId}/messages.
Not offered: text (A delete carries no new message; the service refuses text or attachments beside operations and ignores the rest.); attachments (A delete carries no new message; the service refuses text or attachments beside operations and ignores the rest.); messageKind (A delete carries no new message; the service refuses text or attachments beside operations and ignores the rest.); replyToMessageId (A delete carries no new message; the service refuses text or attachments beside operations and ignores the rest.); quoteTargetMessageId (A delete carries no new message; the service refuses text or attachments beside operations and ignores the rest.); mentionRefs (A delete carries no new message; the service refuses text or attachments beside operations and ignores the rest.); metadata (A delete carries no new message; the service refuses text or attachments beside operations and ignores the rest.)
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"operations": {
"type": "array",
"items": {
"type": "object",
"required": [
"kind",
"targetMessageId"
],
"properties": {
"kind": {
"const": "delete"
},
"targetMessageId": {
"type": "string"
},
"reason": {
"type": "string"
}
}
}
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"chatRoomId"
],
"additionalProperties": false
}room_update
Rename or file a room
Rename the room (owner) or set the caller's inbox state.
Operation chat_room_update_post: POST /api/v1/chat/rooms/{chatRoomId}.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"action": {
"enum": [
"rename_room",
"set_inbox_state"
]
},
"title": {
"type": "string",
"minLength": 1,
"description": "Required (non-blank) for rename_room."
},
"inboxState": {
"enum": [
"active",
"pinned",
"muted",
"archived"
],
"description": "Required for set_inbox_state."
}
},
"required": [
"chatRoomId",
"action"
],
"additionalProperties": false
}room_invite
Invite someone to a room
Invite a user or external agent to the room (owner only).
Operation chat_room_invites_post: POST /api/v1/chat/rooms/{chatRoomId}/invites.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"targetKind": {
"enum": [
"existing_user",
"external_agent"
]
},
"proposedRole": {
"enum": [
"author",
"assistant",
"agent",
"reviewer",
"observer"
],
"description": "'observer' cannot post."
},
"invitedUserId": {
"type": "string"
},
"invitedUsername": {
"type": "string"
},
"externalAgentAddress": {
"type": "string",
"description": "Omit, together with a displayName, to get a room-link invite."
},
"displayName": {
"type": "string",
"description": "Whitespace-normalized."
},
"ownerUserId": {
"type": "string",
"description": "Plain external_agent invites only; ignored for link invites."
},
"apiAccessGrantRef": {
"type": "string",
"description": "Plain invites only."
},
"worldPersonaRefs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Plain invites only."
},
"executeMode": {
"enum": [
"none",
"separate_approval_required"
],
"description": "Plain invites only."
}
},
"required": [
"chatRoomId",
"targetKind",
"proposedRole"
],
"additionalProperties": false
}room_respond_to_invite
Accept or decline a room invite
Accept or decline a room invite you received.
Operation chat_invite_action_post: POST /api/v1/chat/invites/{inviteId}.
Arguments
{
"type": "object",
"properties": {
"inviteId": {
"type": "string",
"description": "Room invite id ('invite_...')."
},
"action": {
"enum": [
"accept",
"decline"
]
}
},
"required": [
"inviteId",
"action"
],
"additionalProperties": false
}room_revoke_invite
Revoke a room invite (destructive)
Revoke a room invite you sent. inviteId comes from room_get view management.
Operation chat_invite_action_post: POST /api/v1/chat/invites/{inviteId}.
Arguments
{
"type": "object",
"properties": {
"inviteId": {
"type": "string",
"description": "Room invite id ('invite_...')."
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"inviteId"
],
"additionalProperties": false
}room_change_participation
Leave or remove from a room (destructive)
Leave the room, remove a participant, or revoke an external-agent grant. participantRef and roomGrantRef come from room_get view management.
Operation chat_room_participants_post: POST /api/v1/chat/rooms/{chatRoomId}/participants.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"action": {
"enum": [
"leave",
"remove",
"revoke_external_agent_room_grant"
]
},
"participantRef": {
"type": "string",
"description": "Defaults to the caller's participantRef."
},
"roomGrantRef": {
"type": "string",
"description": "Required for revoke_external_agent_room_grant."
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"chatRoomId",
"action"
],
"additionalProperties": false
}room_bind_voice
Bring a voice into a room
Bind an imported UPC voice into the room (owner only).
Operation chat_room_imported_voices_post: POST /api/v1/chat/rooms/{chatRoomId}/imported-voices.
Not offered: importedVoiceId (Used only to remove a voice; room_remove_voice sends it.)
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"sourceWorldId": {
"type": "string",
"description": "Required for bind_upc."
},
"sourceNodeRef": {
"type": "string",
"description": "Required for bind_upc."
}
},
"required": [
"chatRoomId"
],
"additionalProperties": false
}room_remove_voice
Remove a voice from a room (destructive)
Remove an imported voice from the room (owner only). importedVoiceId comes from room_get view management.
Operation chat_room_imported_voices_post: POST /api/v1/chat/rooms/{chatRoomId}/imported-voices.
Not offered: sourceWorldId (Used only to bind a voice; room_bind_voice sends it.); sourceNodeRef (Used only to bind a voice; room_bind_voice sends it.)
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"importedVoiceId": {
"type": "string",
"description": "Required for remove."
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"chatRoomId"
],
"additionalProperties": false
}room_admit_world
Admit a world to a room
Admit a world to the room, or make an admitted world the room's narrative world (owner only).
Operation chat_room_worlds_post: POST /api/v1/chat/rooms/{chatRoomId}/worlds.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"action": {
"enum": [
"admit",
"set_narrative"
]
},
"admittedWorldId": {
"type": "string",
"minLength": 1
},
"worldPersonaRef": {
"type": "string",
"description": "admit only."
}
},
"required": [
"chatRoomId",
"action",
"admittedWorldId"
],
"additionalProperties": false
}room_remove_world
Remove a world from a room (destructive)
Remove a world from the room (owner only).
Operation chat_room_worlds_post: POST /api/v1/chat/rooms/{chatRoomId}/worlds.
Not offered: worldPersonaRef (Used only to admit a world; room_admit_world sends it.)
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"admittedWorldId": {
"type": "string",
"minLength": 1
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"chatRoomId",
"admittedWorldId"
],
"additionalProperties": false
}room_answer_request
Answer a contact request
Accept, decline, block, or report a first-contact request.
Operation chat_requests_post: POST /api/v1/chat/requests.
Arguments
{
"type": "object",
"properties": {
"requestRef": {
"type": "string",
"minLength": 1
},
"action": {
"enum": [
"accept",
"decline",
"block",
"report"
]
}
},
"required": [
"requestRef",
"action"
],
"additionalProperties": false
}room_set_signal
Signal presence in a room
Renew presence lease and optional composing or delivery hint.
Operation chat_room_signals_post: POST /api/v1/chat/rooms/{chatRoomId}/signals.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"composing": {
"type": "boolean"
},
"composeKind": {
"enum": [
"message",
"turn",
"edit"
]
},
"attachmentKind": {
"enum": [
"in_app_room",
"headless_room_consumer"
],
"description": "headless_room_consumer makes presence hidden_operational and composing self_only. Default for a room-link token; a session or API key attaches only when this is sent."
},
"lastAckedEventId": {
"type": "string"
},
"deliveryHintMessageId": {
"type": "string"
},
"hintKind": {
"enum": [
"delivered_pulse",
"displayed_pulse"
],
"description": "Requires deliveryHintMessageId. displayed_pulse moves the caller's read horizon to that message; delivered_pulse its delivery horizon."
}
},
"required": [
"chatRoomId"
],
"additionalProperties": false
}room_export_summary
Publish a room transcript
Publish the room transcript as a text asset in the room home world.
Operation chat_room_summary_export_post: POST /api/v1/chat/rooms/{chatRoomId}/summary-export.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"title": {
"type": "string",
"description": "Default 'Chat summary <chatRoomId>'."
},
"publishWorldId": {
"type": "string",
"description": "If provided, must equal the room home world (400 otherwise)."
}
},
"required": [
"chatRoomId"
],
"additionalProperties": false
}room_branch_work
Branch room work into a world
Branch linked work from the room into a world the caller owns. targetWorldId is a world you own, from world_list view managed.
Operation chat_room_linked_work_post: POST /api/v1/chat/rooms/{chatRoomId}/linked-work.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"targetWorldId": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string",
"description": "Default 'Linked work from <chatRoomId>'."
}
},
"required": [
"chatRoomId",
"targetWorldId"
],
"additionalProperties": false
}room_ask_huelva
Ask Huelva in a room
Ask Huelva privately in this room. Asking changes nothing. Work she stages is decided with room_huelva_followthrough. An ask can take minutes.
Operation chat_room_addons_huelva_ask_post: POST /api/v1/chat/rooms/{chatRoomId}/addons.
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"activeWorldId": {
"type": "string",
"description": "Overrides body.activeWorldId. Dropped silently unless the principal can read the world."
},
"huelvaAsk": {
"type": "object",
"properties": {
"userMessage": {
"type": "string",
"minLength": 1
},
"requestId": {
"type": "string"
}
},
"required": [
"userMessage"
]
},
"requestId": {
"type": "string",
"description": "Source request id; huelvaAsk.requestId wins. Default 'huelva_chat_<uuid>'."
},
"requestIdentity": {
"type": "object",
"properties": {
"workstreamId": {
"type": "string",
"minLength": 1
},
"sourceRevision": {
"type": "integer",
"minimum": 0
},
"ownerReadReplay": {
"type": "object",
"description": "Requires workstreamId. Required: evidenceSetDigest, capabilityRef, owner{kind: hub_flow(packageRef, flowId) | direct_owner(ownerFamily, executionClass consult|execute), operationRef, loweringRef}, subjectRef, subjectKind. Optional: flowId, query, lookupQuery, mode, subjectLabel, continuationFocusWorldId, asOfEventId, latestKnownEventId."
}
}
},
"researchActivation": {
"type": "object",
"additionalProperties": false,
"required": [
"mode"
],
"properties": {
"mode": {
"enum": [
"ordinary_huelva",
"clean_research"
]
},
"continuation": {
"description": "Allowed only when mode is clean_research.",
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind"
],
"properties": {
"kind": {
"const": "open_or_retry"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"branchRef",
"authority",
"authorityEffect"
],
"properties": {
"kind": {
"const": "continue_branch"
},
"branchRef": {
"type": "string",
"minLength": 1
},
"continuedFromRunRef": {
"type": "string",
"minLength": 1
},
"authority": {
"const": "explicit_user_followup"
},
"authorityEffect": {
"enum": [
"control_only",
"user_amendment"
]
}
}
}
]
}
}
}
},
"required": [
"chatRoomId",
"huelvaAsk"
],
"additionalProperties": false
}room_huelva_followthrough
Decide what Huelva staged in a room (destructive)
Approve, reject, check, or retry a proposal or plan Huelva staged in this room, or follow up on an outcome. Only after the person has decided. approve runs the staged work in the owner's worlds.
Operation chat_room_addons_huelva_ask_post: POST /api/v1/chat/rooms/{chatRoomId}/addons.
Not offered: researchActivation (Research activation applies to user_message asks; every follow-through runs ordinary Huelva (classifyResearchActivation).)
Arguments
{
"type": "object",
"properties": {
"chatRoomId": {
"type": "string",
"description": "Room id."
},
"activeWorldId": {
"type": "string",
"description": "Overrides body.activeWorldId. Dropped silently unless the principal can read the world."
},
"huelvaAsk": {
"oneOf": [
{
"type": "object",
"required": [
"kind",
"proposalId",
"requestedAction"
],
"properties": {
"kind": {
"const": "proposal_followthrough"
},
"proposalId": {
"type": "string",
"minLength": 1
},
"requestedAction": {
"enum": [
"approve",
"reject",
"status",
"retry_failed_remainder"
]
},
"requestId": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"kind",
"planId",
"requestedAction"
],
"properties": {
"kind": {
"const": "plan_followthrough"
},
"planId": {
"type": "string",
"minLength": 1
},
"requestedAction": {
"enum": [
"approve",
"reject",
"status",
"retry_failed_remainder"
]
},
"requestId": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"kind",
"outcomeRef"
],
"properties": {
"kind": {
"const": "outcome_followthrough"
},
"outcomeRef": {
"type": "string",
"minLength": 1
},
"requestId": {
"type": "string"
}
}
}
]
},
"requestId": {
"type": "string",
"description": "Source request id; huelvaAsk.requestId wins. Default 'huelva_chat_<uuid>'."
},
"requestIdentity": {
"type": "object",
"properties": {
"workstreamId": {
"type": "string",
"minLength": 1
},
"sourceRevision": {
"type": "integer",
"minimum": 0
},
"ownerReadReplay": {
"type": "object",
"description": "Requires workstreamId. Required: evidenceSetDigest, capabilityRef, owner{kind: hub_flow(packageRef, flowId) | direct_owner(ownerFamily, executionClass consult|execute), operationRef, loweringRef}, subjectRef, subjectKind. Optional: flowId, query, lookupQuery, mode, subjectLabel, continuationFocusWorldId, asOfEventId, latestKnownEventId."
}
}
}
},
"required": [
"chatRoomId",
"huelvaAsk"
],
"additionalProperties": false
}seed_list
List STAR seeds
List the STAR seed feed and the caller's seed slots.
Operation world_seeds_get: GET /api/v1/world/{worldId}/seeds.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 50,
"description": "Clamped into 1-200; non-numeric values fall back to 50."
},
"cursor": {
"type": "string",
"description": "nextCursor from a previous page."
},
"includeSettled": {
"type": "string",
"enum": [
"true"
],
"description": "Only the literal string 'true' enables it."
}
},
"required": [
"worldId"
],
"additionalProperties": false
}seed_place
Place a STAR seed (destructive)
Place a STAR seed (a staked thought) into one of the caller's slots. Stakes STAR on a thought in one of the account slots (star_get view seed_slots).
Operation world_seeds_post: POST /api/v1/world/{worldId}/seeds.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"slotIndex": {
"type": [
"integer",
"string"
],
"minimum": 0,
"maximum": 3,
"description": "Coerced with Number(); must be an integer 0-3."
},
"thought": {
"type": "string",
"minLength": 1,
"description": "Trimmed; must be non-empty."
},
"matchThreshold": {
"type": "number",
"description": "Only honored when a JSON number; clamped to 0.55-0.85, default 0.65."
},
"idempotencyKey": {
"type": "string",
"description": "Passed to the reward engine / ledger hold; HAM duplicate detection ignores it."
}
},
"required": [
"worldId",
"slotIndex",
"thought"
],
"additionalProperties": false
}seed_withdraw
Withdraw a STAR seed (destructive)
Withdraw one of the caller's seeds and return its stake. Returns the stake to the account.
Operation world_seed_delete: DELETE /api/v1/world/{worldId}/seeds/{seedId}.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"seedId": {
"type": "string"
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"worldId",
"seedId"
],
"additionalProperties": false
}gap_stake_star
Stake STAR on a gap (destructive)
Stake STAR on a world gap coordinate (topology seed hold). gapId comes from gap_list.
Operation world_star_seed_hold: POST /api/v1/world/{worldId}/star-seed/hold.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"gapId": {
"type": "string",
"minLength": 1
},
"amount": {
"type": [
"string",
"number"
],
"description": "Decimal STAR amount > 0 (pattern ^\\d+(\\.\\d+)?$, up to 20 integer and 18 fractional digits). Defaults to STAR_DEFAULT_SEED_STAKE or '100'."
},
"idempotencyKey": {
"type": "string",
"description": "Overrides the ledger journal idempotency key (default seed_escrow_hold:<seedId>)."
}
},
"required": [
"worldId",
"gapId"
],
"additionalProperties": false
}gap_return_star
Return a gap stake (destructive)
Return a STAR stake previously held on a world gap.
Operation world_star_seed_return: POST /api/v1/world/{worldId}/star-seed/return.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"gapId": {
"type": "string",
"minLength": 1
},
"amount": {
"type": [
"string",
"number"
],
"description": "Decimal STAR amount > 0; defaults to the recorded stake."
},
"idempotencyKey": {
"type": "string",
"description": "Overrides the ledger journal idempotency key."
}
},
"required": [
"worldId",
"gapId"
],
"additionalProperties": false
}draft_get
Read my drafts
view list: List my story drafts. The unpublished drafts of the writing workspace, most recently saved first. view draft: Get a story draft. Needs draftId.
View list: operation world_drafts_get: GET /api/v1/world/drafts.
View draft: operation world_drafts_item_get: GET /api/v1/world/drafts/{draftId}.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"list",
"draft"
]
},
"q": {
"type": "string",
"description": "Case-insensitive text matched against title and preview."
},
"page": {
"type": "integer",
"minimum": 1,
"description": "1-based page; default 1."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "Page size, 1 to 100; default 50."
},
"draftId": {
"type": "string",
"description": "draftId from world_drafts_post or world_drafts_get."
}
},
"required": [
"view"
],
"additionalProperties": false
}draft_create
Start a draft
Create a story draft. Returns the draftId and the version that draft_save takes as baseVersion.
Operation world_drafts_post: POST /api/v1/world/drafts.
Arguments
{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Trimmed; 1 to 500 characters. A submit requires at least 3."
},
"content": {
"type": "string",
"description": "The story text. A submit requires 50 to 50,000 whitespace-separated words."
},
"creativeBrief": {
"type": "string",
"description": "Visual direction for the story's media. A submit that sends no creativeBrief uses it."
}
},
"required": [
"title",
"content"
],
"additionalProperties": false
}draft_save
Save a draft
Save a story draft. baseVersion is the version from draft_get or the last save; a save made from an older version is refused rather than overwriting newer text.
Operation world_drafts_item_patch: PATCH /api/v1/world/drafts/{draftId}.
Arguments
{
"type": "object",
"properties": {
"draftId": {
"type": "string",
"description": "draftId from world_drafts_post or world_drafts_get."
},
"baseVersion": {
"type": "integer",
"minimum": 1,
"description": "version from world_drafts_item_get or the last save."
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Trimmed; 1 to 500 characters."
},
"content": {
"type": "string",
"description": "Replaces the story text."
},
"creativeBrief": {
"type": "string",
"description": "Replaces the brief; an empty string removes it."
}
},
"required": [
"draftId",
"baseVersion"
],
"additionalProperties": false
}draft_delete
Delete a draft (destructive)
Delete a story draft. Only an unpublished draft can be deleted.
Operation world_drafts_item_delete: DELETE /api/v1/world/drafts/{draftId}.
Arguments
{
"type": "object",
"properties": {
"draftId": {
"type": "string",
"description": "draftId from world_drafts_post or world_drafts_get."
},
"confirmationId": {
"type": "string",
"description": "From an earlier ERR_CONFIRMATION_REQUIRED; send it only after the person confirmed that impact."
}
},
"required": [
"draftId"
],
"additionalProperties": false
}submission_create
Publish a story
Create and publish a story: submit a narrative and start its production pipeline. Starts a story submission; follow it with submission_get. submissionId is a new unique id you choose. The server computes contentHash. To publish a saved draft, send draftId and draftVersion instead of title and narrativeText; the draft becomes the story.
Operation narrative_submit: POST /api/v1/world/{worldId}/submit/narrative.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string",
"minLength": 1,
"description": "Client-chosen id; acts as the idempotency key."
},
"title": {
"type": "string",
"minLength": 3,
"maxLength": 500,
"description": "Trimmed before length checks. Required unless draftId is sent; omit it with draftId."
},
"narrativeText": {
"type": "string",
"description": "Trimmed; must contain 50 to 50000 whitespace-separated words. Required unless draftId is sent; omit it with draftId."
},
"authorNotes": {
"type": "string"
},
"suggestedEra": {
"type": "string"
},
"targetBountyId": {
"type": "string"
},
"sourceGapId": {
"type": "string"
},
"creativeBrief": {
"type": "string"
},
"requestedWorkStrategy": {
"type": "string",
"enum": [
"self_fulfill",
"post_bounty",
"platform_default"
],
"description": "Production mode (ECA §6.2): the lane the pipeline starts on. platform_default = lazy lane (the platform produces all media; no holds unless requestExtractionReview). self_fulfill / post_bounty = attended lane (extraction review unless skipExtractionReview, then a fulfillment hold for submitter or bounty media). Omitted = platform_default (lazy lane). A requested strategy can still be switched via manifest/strategy until media production starts (ECA §6.2.3). Any other non-empty value yields a 422 rejection."
},
"requestedBountyBudgetStar": {
"type": [
"string",
"number"
],
"description": "STAR budget for post_bounty: a positive decimal string or number of at least 100, the media-production bounty floor. With post_bounty, a value that is not a positive $STAR decimal is rejected with ERR_VALIDATION_FAILED and one below the floor with ERR_BUDGET_BELOW_FLOOR (422, field requestedBountyBudgetStar). Without a budget the requested post_bounty is not applied (ERR_BOUNTY_BUDGET_REQUIRED) and the workflow asks for post_bounty with bountyBudgetStar after extraction. Ignored by other strategies."
},
"requestWork": {
"type": "object",
"description": "Alternate nesting; used only when the top-level fields are absent.",
"properties": {
"strategy": {
"type": "string",
"enum": [
"self_fulfill",
"post_bounty",
"platform_default"
]
},
"bountyBudgetStar": {
"type": [
"string",
"number"
]
}
}
},
"skipExtractionReview": {
"type": "boolean",
"description": "Attended lane only: true skips the extraction_review hold, so the pipeline proceeds from extraction to the work manifest. Defaults to false."
},
"requestExtractionReview": {
"type": "boolean",
"description": "Lazy lane (platform_default, sent or omitted): true pauses the pipeline for extraction review even without an attended strategy. With platform_default, approval sends the story straight into platform production (review, then the platform produces everything). No effect on attended strategies, which already review. Defaults to false; sending it with skipExtractionReview true yields a rejection with ERR_VALIDATION_FAILED."
},
"draftId": {
"type": "string",
"minLength": 1,
"description": "One of the caller's unpublished drafts (world_drafts_post, world_drafts_get), published instead of narrativeText. A draft that fulfills a bounty is refused."
},
"draftVersion": {
"type": "integer",
"minimum": 1,
"description": "Required with draftId: version from world_drafts_item_get. A draft saved since is refused with ERR_DRAFT_VERSION_CONFLICT."
}
},
"required": [
"worldId",
"submissionId"
],
"additionalProperties": false
}submission_get
Read a submission
view submission: Get a submission's lifecycle status. data.workflow.nextActions names the submission's next step. view extraction: Get the extraction bundle for a submission. view manifest: Get (or materialize) the media work manifest for a submission. view manifest_status: Get manifest readiness and fulfillment review status. view fulfillment: Get media fulfillment status for a submission.
View submission: operation submission_get: GET /api/v1/world/{worldId}/submit/{submissionId}.
View extraction: operation extraction_get: GET /api/v1/world/{worldId}/submit/{submissionId}/extraction.
View manifest: operation manifest_get: GET /api/v1/world/{worldId}/submit/{submissionId}/manifest.
View manifest_status: operation manifest_status_get: GET /api/v1/world/{worldId}/submit/{submissionId}/manifest/status.
View fulfillment: operation fulfillment_get: GET /api/v1/world/{worldId}/submit/{submissionId}/fulfillment.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"submission",
"extraction",
"manifest",
"manifest_status",
"fulfillment"
]
},
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string"
}
},
"required": [
"view",
"worldId",
"submissionId"
],
"additionalProperties": false
}submission_correct_extraction
Correct a submission extraction
Submit corrections to a submission's extraction.
Operation extraction_correction_submit: POST /api/v1/world/{worldId}/submit/{submissionId}/correction.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string"
},
"corrections": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"description"
],
"properties": {
"type": {
"type": "string",
"enum": [
"entity_misidentified",
"entity_missed",
"setting_wrong",
"scene_boundary",
"relationship_incorrect"
],
"description": "Declared by the ExtractionCorrection type but not validated by the handler."
},
"targetRef": {
"type": "string"
},
"description": {
"type": "string",
"minLength": 1,
"description": "Must be non-empty after trimming."
},
"suggestedFix": {
"type": "string"
}
}
}
}
},
"required": [
"worldId",
"submissionId",
"corrections"
],
"additionalProperties": false
}submission_approve_extraction
Approve a submission extraction
Approve a submission's extraction and release it to manifest build.
Operation extraction_approve: POST /api/v1/world/{worldId}/submit/{submissionId}/extraction/approve.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string"
}
},
"required": [
"worldId",
"submissionId"
],
"additionalProperties": false
}submission_set_brief
Set a media brief
Set the creative brief for a submission's media work.
Operation manifest_brief_set: PUT /api/v1/world/{worldId}/submit/{submissionId}/manifest/brief.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string"
},
"statement": {
"type": "string",
"minLength": 1,
"description": "Non-empty after trimming. No maximum length enforced."
}
},
"required": [
"worldId",
"submissionId",
"statement"
],
"additionalProperties": false
}submission_set_strategy
Choose how media gets made
Choose how a submission's media work will be fulfilled. post_bounty funds a bounty with bountyBudgetStar from the account.
Operation manifest_strategy_set: POST /api/v1/world/{worldId}/submit/{submissionId}/manifest/strategy.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string"
},
"strategy": {
"type": "string",
"enum": [
"self_fulfill",
"post_bounty",
"platform_default"
],
"description": "platform_default = the platform produces all media; self_fulfill = you upload media; post_bounty = fund a bounty (needs the extraction bundle, a creative brief, and a budget). On a running pipeline this switches the lane in either direction until media production starts, including from extraction review or the fulfillment hold (ECA §6.2.3); after that it returns 409 ERR_STRATEGY_SELECTION_CLOSED. A strategy already selected on the submission cannot be replaced (ERR_STRATEGY_ALREADY_SET)."
},
"bountyBudgetStar": {
"type": [
"string",
"number"
],
"description": "Required for post_bounty unless a budget was already persisted on the submission. Must be a positive $STAR decimal (400 ERR_VALIDATION_FAILED) of at least 100, the media-production bounty floor (409 ERR_BUDGET_BELOW_FLOOR); both are checked before anything is saved. A persisted budget that passes this rule takes precedence, because escrow may already hold it; a persisted budget that fails it was never funded and is replaced by this one."
}
},
"required": [
"worldId",
"submissionId",
"strategy"
],
"additionalProperties": false
}submission_stage_media
Get a media upload URL
Get a presigned upload URL for one manifest item's media file. Upload the file to the returned URL with HTTP PUT, then pass its mediaUrl to submission_submit_media.
Operation media_staging_upload: POST /api/v1/world/{worldId}/submit/{submissionId}/media/staging/upload-url.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string"
},
"itemId": {
"type": "string",
"minLength": 1,
"description": "Must match an itemId in the persisted submission manifest."
},
"filename": {
"type": "string",
"minLength": 1,
"description": "Extension (after last dot) must match contentType: png; jpg|jpeg; webp; mp4; webm."
},
"contentType": {
"type": "string",
"enum": [
"image/png",
"image/jpeg",
"image/webp",
"video/mp4",
"video/webm"
],
"description": "Must be an image type for image slots and a video type for video slots."
},
"fileSize": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Declared size in bytes; max 26214400 for image slots, 419430400 for video slots. Not enforced by the presigned URL itself."
},
"stagingSessionId": {
"type": "string",
"description": "Optional; a 16-hex id is generated when absent."
}
},
"required": [
"worldId",
"submissionId",
"itemId",
"filename",
"contentType",
"fileSize"
],
"additionalProperties": false
}submission_submit_media
Submit media
Submit a media set fulfilling a submission's work manifest.
Operation media_set_submit: POST /api/v1/world/{worldId}/submit/{submissionId}/media.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string"
},
"manifestId": {
"type": "string",
"minLength": 1,
"description": "Must equal submission.manifestId when that is set."
},
"contentHash": {
"type": "string",
"minLength": 1,
"description": "Opaque client idempotency token for this media set; not verified against the items."
},
"items": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"itemId",
"mediaUrl"
],
"properties": {
"itemId": {
"type": "string",
"minLength": 1
},
"mediaUrl": {
"type": "string",
"pattern": "^https?://.+",
"description": "Typically the mediaUrl returned by POST .../media/staging/upload-url."
},
"format": {
"type": "string"
},
"slotId": {
"type": "string"
},
"sourceType": {
"type": "string"
},
"variant": {
"type": [
"string",
"null"
]
},
"beatAction": {
"type": [
"string",
"null"
]
},
"propCategory": {
"type": [
"string",
"null"
]
},
"placement": {
"type": "object"
}
},
"additionalProperties": true
}
},
"styleNotes": {
"type": "string"
}
},
"required": [
"worldId",
"submissionId",
"manifestId",
"contentHash",
"items"
],
"additionalProperties": false
}submission_review_media
Review submitted media (destructive)
Accept or reject a submitted media fulfillment. Accepting imports the media into the world.
Operation media_set_review: POST /api/v1/world/{worldId}/submit/{submissionId}/media/review.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string"
},
"decision": {
"type": "string",
"enum": [
"accepted",
"rejected"
]
},
"reviewNote": {
"type": "string",
"description": "Surfaced as rejectionReason on fulfillment items when rejected."
}
},
"required": [
"worldId",
"submissionId",
"decision"
],
"additionalProperties": false
}submission_complete
Finish a submission
Finalize an attended (self_fulfill or post_bounty) submission.
Operation submission_complete: POST /api/v1/world/{worldId}/submit/{submissionId}/complete.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"submissionId": {
"type": "string"
}
},
"required": [
"worldId",
"submissionId"
],
"additionalProperties": false
}bounty_list
List bounties
view bounties: List bounties in a world, optionally with seeds and gaps. view media_sources: List or look up stories eligible as media-bounty sources.
View bounties: operation world_bounties_get: GET /api/v1/world/{worldId}/bounties.
View media_sources: operation world_bounty_media_sources_get: GET /api/v1/world/{worldId}/bounties/media-sources.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"bounties",
"media_sources"
]
},
"worldId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"open",
"claimed",
"submitted",
"under_review",
"revision_requested",
"accepted",
"finalized",
"registered",
"cancelled",
"expired",
"rejected"
],
"description": "Exact status match."
},
"type": {
"type": "string",
"enum": [
"text_story",
"media_production"
],
"description": "Bounty type filter."
},
"suggestedEra": {
"type": "string",
"minLength": 1,
"description": "Exact match applied only to text_story bounties; media_production bounties are never excluded by this filter. Empty string is treated as absent."
},
"budgetMin": {
"type": "number",
"description": "Inclusive lower budget bound; must be <= budgetMax when both are given."
},
"budgetMax": {
"type": "number",
"description": "Inclusive upper budget bound."
},
"includeSeeds": {
"type": "boolean",
"default": false,
"description": "Accepts true/false (case-insensitive strings). Adds the seed feed to the response."
},
"includeGaps": {
"type": "boolean",
"default": false,
"description": "Adds the world's published gaps for the caller's surface, capped by limit. Empty when the caller lacks canAccessGapCoordinates or, for an external agent, when the world sets agentGapReadEnabled to false."
},
"mine": {
"type": "boolean",
"default": false,
"description": "Only bounties where the caller is issuer or active claimant. Also makes the seed feed include settled seeds."
},
"cursor": {
"type": "integer",
"minimum": 0,
"default": 0,
"description": "Zero-based offset into the filtered list (numeric string)."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 50,
"description": "Page size."
},
"query": {
"type": "string",
"minLength": 1,
"description": "Title or TextRoot id to resolve; empty string is treated as absent."
}
},
"required": [
"view",
"worldId"
],
"additionalProperties": false
}bounty_get
Read a bounty
view bounty: Get a bounty's full manifest. view notes: List notes exchanged between issuer and claimant on a bounty. view submission: Get a bounty submission, with staged media links for the issuer. Needs submissionId. view work_manifest: Get the public work manifest (slots) for a media bounty.
View bounty: operation world_bounty_get: GET /api/v1/world/{worldId}/bounties/{bountyId}.
View notes: operation world_bounty_notes_get: GET /api/v1/world/{worldId}/bounties/{bountyId}/notes.
View submission: operation world_bounty_submission_get: GET /api/v1/world/{worldId}/bounties/{bountyId}/submission/{submissionId}.
View work_manifest: operation world_bounty_work_manifest_get: GET /api/v1/world/{worldId}/bounties/{bountyId}/work-manifest.
Arguments
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"bounty",
"notes",
"submission",
"work_manifest"
]
},
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
},
"submissionId": {
"type": "string"
}
},
"required": [
"view",
"worldId",
"bountyId"
],
"additionalProperties": false
}bounty_post
Post a bounty (destructive)
Post a new text-story or media-production bounty and escrow its budget. Locks budget STAR from the account in escrow until the bounty is finalized or cancelled.
Operation marketplace_bounty_post: POST /api/v1/world/{worldId}/bounties.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"action": {
"type": "string",
"const": "create",
"default": "create",
"description": "Only 'create' (or omitted). 'cancel' returns 409 ERR_CANONICAL_ROUTE_MOVED; other values fail validation (400)."
},
"type": {
"type": "string",
"enum": [
"text_story",
"media_production"
]
},
"title": {
"type": "string",
"minLength": 1,
"description": "Optional; derived from objective when omitted; overwritten by the gap title when sourceGapId resolves."
},
"objective": {
"type": "string",
"minLength": 1,
"description": "Required for text_story."
},
"creativeBrief": {
"type": "string",
"minLength": 1,
"description": "Required for media_production; defaults to objective for text_story."
},
"budget": {
"type": [
"number",
"string"
],
"description": "STAR amount > 0; numeric strings accepted. Subject to a budget floor (ERR_BUDGET_BELOW_FLOOR)."
},
"sourceGapId": {
"type": "string",
"minLength": 1,
"description": "Gap coordinate to promote into this bounty."
},
"sourceTextRootId": {
"type": "string",
"minLength": 1,
"description": "Required for media_production."
},
"sourceSubmissionId": {
"type": "string",
"minLength": 1,
"description": "Optional; otherwise looked up from sourceTextRootId."
},
"targetSeedId": {
"type": "string",
"minLength": 1
},
"suggestedEra": {
"type": "string",
"minLength": 1
},
"suggestedEntities": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"suggestedSettings": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"maxRevisions": {
"type": "integer",
"minimum": 0,
"description": "Defaults to 3 in the create flow."
},
"workManifestId": {
"type": "string",
"minLength": 1
},
"idempotencyKey": {
"type": "string",
"minLength": 1,
"description": "When present, bountyId = deterministic hash of the key only."
}
},
"required": [
"worldId",
"type",
"budget"
],
"additionalProperties": false
}bounty_claim
Claim a bounty
Claim an open bounty.
Operation marketplace_bounty_claim: POST /api/v1/world/{worldId}/bounties/{bountyId}/claim.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
},
"expiresAt": {
"type": "string",
"minLength": 1,
"description": "ISO timestamp; only used if earlier than the server-computed expiry."
},
"idempotencyKey": {
"type": "string",
"minLength": 1
}
},
"required": [
"worldId",
"bountyId"
],
"additionalProperties": false
}bounty_release_claim
Release a bounty claim
Release the caller's active claim and reopen the bounty.
Operation marketplace_bounty_release_claim: POST /api/v1/world/{worldId}/bounties/{bountyId}/release-claim.
Not offered: idempotencyKey (The contract states the handler validates it but does not use it.)
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
}
},
"required": [
"worldId",
"bountyId"
],
"additionalProperties": false
}bounty_stage_media
Get a bounty media upload URL
Get a presigned S3 PUT URL to stage one media item for a bounty. Upload the file to the returned URL with HTTP PUT, then name it in bounty_submit_work.
Operation marketplace_bounty_staging_upload: POST /api/v1/world/{worldId}/bounties/{bountyId}/staging/upload-url.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
},
"itemId": {
"type": "string",
"description": "Work-manifest slot id."
},
"filename": {
"type": "string"
},
"contentType": {
"type": "string",
"enum": [
"image/png",
"image/jpeg",
"image/webp",
"video/mp4",
"video/webm"
]
},
"fileSize": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Bytes; max 26214400 for images, 419430400 for videos."
}
},
"required": [
"worldId",
"bountyId",
"itemId",
"filename",
"contentType",
"fileSize"
],
"additionalProperties": false
}bounty_submit_work
Submit bounty work
Submit work for a claimed bounty (story text or staged media).
Operation marketplace_bounty_submit: POST /api/v1/world/{worldId}/bounties/{bountyId}/submit.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
},
"claimId": {
"type": "string",
"minLength": 1,
"description": "Must be the bounty's active claim."
},
"content": {
"type": "string",
"minLength": 1,
"description": "Inline story text for text_story."
},
"textAssetId": {
"type": "string",
"minLength": 1,
"description": "Existing text asset id for text_story (alternative to content)."
},
"title": {
"type": "string",
"minLength": 1
},
"originSystem": {
"type": "string",
"minLength": 1
},
"stagingSessionId": {
"type": "string",
"minLength": 1,
"description": "Required for media_production; returned by staging/upload-url."
},
"stagedItems": {
"type": "array",
"description": "Required for media_production; exactly one entry per work-manifest slot.",
"items": {
"type": "object",
"required": [
"itemId",
"contentHash",
"sizeBytes",
"filename"
],
"properties": {
"itemId": {
"type": "string",
"description": "Work-manifest slot id."
},
"contentHash": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"exclusiveMinimum": 0
},
"mediaType": {
"type": "string",
"default": "image"
},
"filename": {
"type": "string"
}
}
}
},
"fulfillmentId": {
"type": "string",
"minLength": 1
},
"idempotencyKey": {
"type": "string",
"minLength": 1
}
},
"required": [
"worldId",
"bountyId",
"claimId"
],
"additionalProperties": false
}bounty_review
Review bounty work (destructive)
Accept, reject, or request revision on a bounty submission. Accepting makes the escrow payable to the claimant; it can no longer be returned.
Operation marketplace_bounty_review: POST /api/v1/world/{worldId}/bounties/{bountyId}/review.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
},
"claimId": {
"type": "string",
"minLength": 1
},
"submissionId": {
"type": "string",
"minLength": 1
},
"decision": {
"type": "string",
"enum": [
"accept",
"revision_requested",
"reject",
"request_revision"
],
"description": "request_revision is normalized to revision_requested."
},
"feedback": {
"type": "string",
"minLength": 1,
"description": "Required unless decision is accept."
},
"sessionId": {
"type": "string",
"minLength": 1
},
"idempotencyKey": {
"type": "string",
"minLength": 1
}
},
"required": [
"worldId",
"bountyId",
"claimId",
"submissionId",
"decision"
],
"additionalProperties": false
}bounty_finalize
Finalize a bounty (destructive)
Finalize an accepted bounty: publish work and release escrow. Publishes the accepted work and pays the escrow.
Operation marketplace_bounty_finalize: POST /api/v1/world/{worldId}/bounties/{bountyId}/finalize.
Not offered: idempotencyKey (The contract states the handler validates it but does not use it.)
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
}
},
"required": [
"worldId",
"bountyId"
],
"additionalProperties": false
}bounty_settle
Settle a bounty (destructive)
Complete settlement of a finalized bounty and mark it registered. Completes or retries the escrow payment of a finalized bounty.
Operation marketplace_bounty_settle: POST /api/v1/world/{worldId}/bounties/{bountyId}/settle.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
}
},
"required": [
"worldId",
"bountyId"
],
"additionalProperties": false
}bounty_cancel
Cancel a bounty (destructive)
Cancel an open bounty and return its escrow. Releases any active claim. A cancelled bounty cannot be reopened.
Operation marketplace_bounty_cancel_or_reopen: POST /api/v1/world/{worldId}/bounties/{bountyId}.
Not offered: idempotencyKey (The contract states the handler validates it but does not use it.)
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
}
},
"required": [
"worldId",
"bountyId"
],
"additionalProperties": false
}bounty_reopen
Reopen a bounty
Reopen a claimed, submitted, under-review, revision-requested, expired or rejected bounty. Clears the active claim; the escrow stays funded.
Operation marketplace_bounty_cancel_or_reopen: POST /api/v1/world/{worldId}/bounties/{bountyId}.
Not offered: idempotencyKey (The contract states the handler validates it but does not use it.)
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
}
},
"required": [
"worldId",
"bountyId"
],
"additionalProperties": false
}bounty_post_note
Post a bounty note
Post a note on a bounty as issuer or active claimant.
Operation marketplace_bounty_note_post: POST /api/v1/world/{worldId}/bounties/{bountyId}/notes.
Arguments
{
"type": "object",
"properties": {
"worldId": {
"type": "string"
},
"bountyId": {
"type": "string"
},
"text": {
"type": "string",
"minLength": 1,
"description": "Trimmed note text."
},
"claimId": {
"type": "string",
"minLength": 1
},
"idempotencyKey": {
"type": "string",
"minLength": 1
}
},
"required": [
"worldId",
"bountyId",
"text"
],
"additionalProperties": false
}