All tools
ToolRead

List library relationships

list_library_relationships

You need relationship mapping between sources, claims, drafts, posts, and artifacts.

When to use it

You need relationship mapping between sources, claims, drafts, posts, and artifacts.

Typical workflow

Inspect existing relationships before creating, updating, or cleaning edges.

What it returns

Graph neighbors, explicit relationships, cleanup results, or relationship ids.

Avoid using it when

You only need visual canvas edges; canvas is separate from the knowledge graph.

Advanced input contract

Agent hosts use this JSON Schema to validate the exact input shape.

View JSON Schema
{
  "type": "object",
  "properties": {
    "folderId": {
      "type": "string",
      "format": "uuid"
    },
    "companyId": {
      "type": "string",
      "format": "uuid"
    },
    "node": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "bottleneck",
            "claim",
            "company",
            "sector",
            "library_artifact",
            "library_canvas",
            "library_document",
            "library_file",
            "library_file_chunk",
            "library_content_chunk",
            "library_folder",
            "portfolio_holding",
            "thesis_review",
            "published_post",
            "draft",
            "observation",
            "research_model",
            "research_assumption",
            "research_entity",
            "project_watchlist_item",
            "research_monitor",
            "url"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        }
      },
      "required": [
        "type",
        "id"
      ],
      "additionalProperties": false
    },
    "source": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "bottleneck",
            "claim",
            "company",
            "sector",
            "library_artifact",
            "library_canvas",
            "library_document",
            "library_file",
            "library_file_chunk",
            "library_content_chunk",
            "library_folder",
            "portfolio_holding",
            "thesis_review",
            "published_post",
            "draft",
            "observation",
            "research_model",
            "research_assumption",
            "research_entity",
            "project_watchlist_item",
            "research_monitor",
            "url"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        }
      },
      "required": [
        "type",
        "id"
      ],
      "additionalProperties": false
    },
    "target": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "bottleneck",
            "claim",
            "company",
            "sector",
            "library_artifact",
            "library_canvas",
            "library_document",
            "library_file",
            "library_file_chunk",
            "library_content_chunk",
            "library_folder",
            "portfolio_holding",
            "thesis_review",
            "published_post",
            "draft",
            "observation",
            "research_model",
            "research_assumption",
            "research_entity",
            "project_watchlist_item",
            "research_monitor",
            "url"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        }
      },
      "required": [
        "type",
        "id"
      ],
      "additionalProperties": false
    },
    "relationshipType": {
      "type": "string",
      "enum": [
        "supports",
        "contradicts",
        "references",
        "cites",
        "derived_from",
        "duplicates",
        "updates",
        "summarizes",
        "mentions",
        "related_to"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "archived",
        "all"
      ],
      "default": "active"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 50
    },
    "view": {
      "type": "string",
      "enum": [
        "compact",
        "full"
      ],
      "default": "compact",
      "description": "compact returns one-line edges; full returns complete edge metadata."
    },
    "cursor": {
      "type": "string",
      "description": "Opaque nextCursor from a previous page."
    }
  },
  "additionalProperties": false
}

Useful next tools