GravityPort
v0.3.16Built 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.
| Parameter | Type | Description |
|---|---|---|
imagePath * | string | Absolute path of the image on this machine. |
business_fields | object | Stored with the asset but not searchable; put anything that should be findable via search into tags instead. |
category | string | Category label shown in the app. |
favorite | boolean | Mark the asset as a favorite. |
group | string | Group the asset is filed under; grouping, not a project. |
negative_prompt | string | |
parent_asset_id | string | |
prompt | string | |
rating | integer | Star rating from 0 (unrated) to 5. |
ratio | string | |
references | array | |
skill | string | |
source | object | Optional 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. |
sourceType | string | Optional 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… |
style | string | |
tags | array | Tags saved with the asset; searchable. |
theme | string | |
user_prompt | string | Optional user request kept separately from the effective generation prompt. |
version_change | string |
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…
| Parameter | Type | Description |
|---|---|---|
folderPath * | string | Absolute path of the folder to import. |
prompt | string | |
recursive | boolean | Also read subfolders (default false; the folder itself is level 1, contents are read down to level 5, deeper subfolders are skipped). |
source | object | Optional generation provenance applied to every imported file, such as generation_tool, model, or codex_session_id. |
sourceType | string |
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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | |
limit | integer | |
query | string |
asset_search
Search GravityPort visual memory using lexical search and explicit creation-time bounds. Multiple query words are combined with AND: every word must appear for an asset to match; OR is not supported. Returns compact per-asset summaries with the total match 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.
| Parameter | Type | Description |
|---|---|---|
createdAfter | string | Inclusive lower creation-time bound. A date-only value ("2026-11-07") means local midnight of that day on this machine; a value with Z or a ±hh:mm offset keeps its explicit zone. |
createdBefore | string | Inclusive upper creation-time bound. A date-only value ("2026-11-07") means local midnight of that day, so the bound is "before Nov 7 starts" — assets created on Nov 7 itself are outside. A value wi… |
cursor | string | |
limit | integer | |
minScore | number | Deprecated and ignored. |
query | string | Space-separated words; every word must appear (AND). OR is not supported. |
visual | boolean | Deprecated and ignored. |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
assetId * | string | |
includePrompts | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
assetId * | string |
asset_restore
Restore an asset from Trash back to the active library.
| Parameter | Type | Description |
|---|---|---|
assetId * | string |
asset_duplicate
Create an independent editable copy that starts a new version root while retaining duplicate provenance.
| Parameter | Type | Description |
|---|---|---|
assetId * | string | |
assetIdNew | string |
asset_version_create
Save a new recipe version as a child of an existing asset without overwriting the parent.
| Parameter | Type | Description |
|---|---|---|
assetId * | string | Existing parent asset ID. |
version_change * | string | Required summary of what changed from the parent. |
assetIdNew | string | Optional ID for the new version. |
business_fields | object | Stored with the asset but not searchable; put anything that should be findable via search into tags instead. |
category | string | |
favorite | boolean | |
group | string | |
imagePath | string | Optional 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_prompt | string | |
prompt | string | |
rating | integer | |
ratio | string | |
references | array | |
skill | string | |
source | object | Optional provenance for a replacement image, such as generation_tool, model, or codex_session_id. |
sourceType | string | |
style | string | |
tags | array | |
theme | string | |
user_prompt | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
assetId * | string |
asset_recipe_history
Read immutable generation recipe snapshots for one asset and identify the currently active snapshot.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
assetId * | string | |
business_fields | object | Stored 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… |
category | string | |
favorite | boolean | |
group | string | |
negative_prompt | string | |
prompt | string | |
rating | integer | |
ratio | string | |
recipe_change_summary | string | |
references | array | |
skill | string | |
style | string | |
tags | array | |
theme | string | |
user_prompt | string |
asset_attach_prompt
Attach or replace the full prompt recipe for a saved asset.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
outputAssetId * | string | Existing GravityPort asset produced by this generation. |
batchId | string | |
captureChannel | string | |
captureContextId | string | GravityPort/local observation context. This is not a provider generation-call ID. Several generations in one capture context are told apart by providerToolCallId. |
conversationId | string | |
createdAt | string | |
effectivePrompt | string | |
evidence | object | |
messageId | string | |
model | string | |
promptStatus | string | |
provider | string | |
providerAssetId | string | |
providerGenerationCallId | string | Provider generation-call identifier only when actually supplied by the provider integration. |
providerResponseId | string | |
providerToolCallId | string | Provider/runtime tool-call identifier when observed. |
references | array | |
userPrompt | string | |
verificationLevel | Evidence 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.
| Parameter | Type | Description |
|---|---|---|
assetId | string | |
captureContextId | string | |
providerGenerationCallId | string | |
providerToolCallId | string |
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.
| Parameter | Type | Description |
|---|---|---|
childGenerationId * | string | |
parentGenerationId * | string | |
createdAt | string | |
evidence | object | |
relationType | How the child relates to the parent; defaults to derived_from when omitted. | |
verificationLevel | Evidence 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
assetIds * | array | |
coverAssetId | string | |
name | string |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
query | string |