GravityPort

v0.3.16
io.github.fengseekling-coder/gravityport Checked 4 hours ago Published 9 days ago

Built into the GravityPort desktop app: install it, then Claude or Codex can search your AI library.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

asset_create

Copy an image into the GravityPort library and save prompt recipe metadata. The image path must be an absolute path on this machine. Symbolic links are rejected. Only supported image and video formats are imported. Identical bytes already in the library (outside Trash) return the existing asset with deduplicated: true instead of creating a copy.

ParameterTypeDescription
imagePath *stringAbsolute path of the image on this machine.
business_fieldsobjectStored with the asset but not searchable; put anything that should be findable via search into tags instead.
categorystringCategory label shown in the app.
favoritebooleanMark the asset as a favorite.
groupstringGroup the asset is filed under; grouping, not a project.
negative_promptstring
parent_asset_idstring
promptstring
ratingintegerStar rating from 0 (unrated) to 5.
ratiostring
referencesarray
skillstring
sourceobjectOptional generation provenance, such as generation_tool, model, codex_session_id, or codex_thread_id. The original image path and Codex task ID are detected automatically.
sourceTypestringOptional source type. Defaults to codex-generated for images under <CODEX_HOME>/generated_images (normally the user's .codex/generated_images), and to mcp-agent (an image saved by an AI assistant, sho…
stylestring
tagsarrayTags saved with the asset; searchable.
themestring
user_promptstringOptional user request kept separately from the effective generation prompt.
version_changestring

asset_import_folder

Import every image and video found in a local folder into the GravityPort library, applying the same prompt/sourceType/source to each file. The folder path must be an absolute path on this machine. Symbolic links are skipped; with recursive: true the folder itself is level 1 and its contents are read down to level 5 (at most four subfolder levels below it), and deeper subfolders are skipped; a single call imports at most 1000 files, otherwise it fails and asks for batches. Identical bytes already in the library are reported as deduplicated. Files import one by one; a failed file is reported an…

ParameterTypeDescription
folderPath *stringAbsolute path of the folder to import.
promptstring
recursivebooleanAlso read subfolders (default false; the folder itself is level 1, contents are read down to level 5, deeper subfolders are skipped).
sourceobjectOptional generation provenance applied to every imported file, such as generation_tool, model, or codex_session_id.
sourceTypestring

asset_list

List saved GravityPort assets for a project, optionally filtered by search text. Returns compact per-asset summaries with the total count (20 per page by default, at most 100; pass `cursor` to page further); use asset_get for an asset's full recipe and metadata.

ParameterTypeDescription
cursorstring
limitinteger
querystring

asset_get

Get one saved asset and its full prompt recipe. asset_list and asset_search return only compact summaries; call this for the full recipe and metadata.

ParameterTypeDescription
assetId *string

asset_provenance_export

Export a portable GravityPort provenance bundle plus an unsigned C2PA assertion payload. Prompts and user messages are excluded by default; pass includePrompts: true only when the user explicitly asks to include prompts. Local filesystem paths and usernames are never exported under any circumstances. This does not create a signed Content Credential; a C2PA signer must bind and sign the assertion separately.

ParameterTypeDescription
assetId *string
includePromptsbooleanWhether to include prompts and user messages. Defaults to false; pass true only when the user explicitly requests prompts. Local filesystem paths and usernames are never exported under any circumstanc…

asset_trash

Move an asset to Trash. Trashed assets can be restored with asset_restore or inside the GravityPort app, and are permanently purged after 90 days. Use this when the user asks to delete or remove an asset. Do NOT use this when the user asks to archive or stash an asset. If the user is viewing this asset in GravityPort, GravityPort asks the user first and the call waits up to 60 seconds for the answer.

ParameterTypeDescription
assetId *string

asset_restore

Restore an asset from Trash back to the active library.

ParameterTypeDescription
assetId *string

asset_duplicate

Create an independent editable copy that starts a new version root while retaining duplicate provenance.

ParameterTypeDescription
assetId *string
assetIdNewstring

asset_version_create

Save a new recipe version as a child of an existing asset without overwriting the parent.

ParameterTypeDescription
assetId *stringExisting parent asset ID.
version_change *stringRequired summary of what changed from the parent.
assetIdNewstringOptional ID for the new version.
business_fieldsobjectStored with the asset but not searchable; put anything that should be findable via search into tags instead.
categorystring
favoriteboolean
groupstring
imagePathstringOptional new image path; must be an absolute path on this machine (any local folder is accepted, same as asset_create). When omitted, the parent image is copied for a recipe-only version.
negative_promptstring
promptstring
ratinginteger
ratiostring
referencesarray
skillstring
sourceobjectOptional provenance for a replacement image, such as generation_tool, model, or codex_session_id.
sourceTypestring
stylestring
tagsarray
themestring
user_promptstringOptional user request kept separately from the effective generation prompt.

asset_version_history

Read the complete root-to-descendant recipe version tree for an asset, including archived versions.

ParameterTypeDescription
assetId *string

asset_recipe_history

Read immutable generation recipe snapshots for one asset and identify the currently active snapshot.

ParameterTypeDescription
assetId *string

asset_update_metadata

Update metadata fields for a saved asset. Pass `references` to record reference rights and permitted uses for a saved asset; that annotation is not a generation input, so it appends a new recipe snapshot.

ParameterTypeDescription
assetId *string
business_fieldsobjectStored with the asset but not searchable; put anything that should be findable via search into tags instead. Only the keys you pass are merged into the stored object: a key whose value is null is remo…
categorystring
favoriteboolean
groupstring
negative_promptstring
promptstring
ratinginteger
ratiostring
recipe_change_summarystring
referencesarray
skillstring
stylestring
tagsarray
themestring
user_promptstring

asset_attach_prompt

Attach or replace the full prompt recipe for a saved asset.

ParameterTypeDescription
assetId *string
prompt *string

generation_record

Record one generation occurrence independently from the deduplicated output asset. Use this when an agent knows that a specific generation produced a saved GravityPort asset.

ParameterTypeDescription
outputAssetId *stringExisting GravityPort asset produced by this generation.
batchIdstring
captureChannelstring
captureContextIdstringGravityPort/local observation context. This is not a provider generation-call ID. Several generations in one capture context are told apart by providerToolCallId.
conversationIdstring
createdAtstring
effectivePromptstring
evidenceobject
messageIdstring
modelstring
promptStatusstring
providerstring
providerAssetIdstring
providerGenerationCallIdstringProvider generation-call identifier only when actually supplied by the provider integration.
providerResponseIdstring
providerToolCallIdstringProvider/runtime tool-call identifier when observed.
referencesarray
userPromptstring
verificationLevelEvidence level for this externally supplied record. provider_verified is reserved for trusted GravityPort provider integrations.

generation_list

List generation occurrences, optionally filtered by output asset or provider identifiers.

ParameterTypeDescription
assetIdstring
captureContextIdstring
providerGenerationCallIdstring
providerToolCallIdstring

generation_relation_record

Record an explicit generation-to-generation relationship such as edited_from or variant_of. Do not infer a parent unless the evidence supports it. When verificationLevel is omitted the relation is recorded as user_confirmed (you are asserting it on the user's behalf); pass "observed" or "inferred" to record a weaker evidence level.

ParameterTypeDescription
childGenerationId *string
parentGenerationId *string
createdAtstring
evidenceobject
relationTypeHow the child relates to the parent; defaults to derived_from when omitted.
verificationLevelEvidence level for this externally supplied record. provider_verified is reserved for trusted GravityPort provider integrations.

generation_lineage

Read the connected generation lineage graph around one generation event, including parent/child IDs and evidence-bearing relations.

ParameterTypeDescription
generationId *string

stack_create

Group two or more saved assets into a new stack, the same as stacking a selection in the GravityPort app. coverAssetId defaults to the first asset. name (optional, at most 80 characters) is the stack's display name. An asset can belong to only one stack: if any asset is already in a stack the call fails with ASSET_ALREADY_STACKED and nothing changes; take it out with stack_remove_assets first. To show the same image in several stacks, copy it with asset_duplicate and stack the copy. Archived assets cannot be stacked.

ParameterTypeDescription
assetIds *array
coverAssetIdstring
namestring

stack_add_assets

Add saved assets to an existing stack, after its current members. Assets already in this stack are skipped and listed in alreadyInStack. If any asset belongs to a different stack the call fails with ASSET_ALREADY_STACKED and nothing changes.

ParameterTypeDescription
assetIds *array
stackId *string

stack_rename

Set a stack's display name (trimmed, 1 to 80 characters). The name is kept even when the stack was created automatically from a conversation.

ParameterTypeDescription
name *string
stackId *string

stack_remove_assets

Take assets out of a stack; the assets stay in the library. Every assetId must belong to this stack, otherwise the call fails with ASSET_NOT_IN_STACK and nothing changes. A stack left with one asset is dissolved (dissolved: true). Assets taken out are not stacked again automatically.

ParameterTypeDescription
assetIds *array
stackId *string

stack_dissolve

Dissolve a stack: its assets return to the library as separate assets; nothing is deleted or archived. They are not stacked again automatically.

ParameterTypeDescription
stackId *string

stack_get

Read one stack: its name, cover, member count, and member asset IDs in stack order. Members in Trash or archived are left out.

ParameterTypeDescription
stackId *string

stack_list

List the stacks shown in the GravityPort library (two or more visible members), most recently updated first, optionally filtered by text in the stack name.

ParameterTypeDescription
limitinteger
querystring