`trilium` capability operations

trilium capability operations

Note capability for note-taking systems

Part of the pipeline capability catalog. Index: ../capabilities.md.

create

Create a note for the signed-in caller. Creates or updates data.
Example: {"title":"example"} (mutation)

Inputs (params):

Param Type Required Description
title string yes Note title
content string no Note content
type string no Note type
parent_note_id string no Parent note ID

Usage:

  - name: create_step
    capability: trilium
    operation: create
    params:
      title: "..."  # required
      content: "..."
      type: "..."
      parent_note_id: "..."

delete

Delete a note for the signed-in caller. Deletes or removes data.
Example: {"id":"example"} (mutation)

Inputs (params):

Param Type Required Description
id string yes Note ID

Usage:

  - name: delete_step
    capability: trilium
    operation: delete
    params:
      id: "..."  # required

get

Get a note for the signed-in caller. Read-only.
Example: {"id":"example"}

Inputs (params):

Param Type Required Description
id string yes Note ID

Usage:

  - name: get_step
    capability: trilium
    operation: get
    params:
      id: "..."  # required

get_app_info

Get note server info for the signed-in caller. Read-only.
Example: {}

Inputs (params):

(none)

Usage:

  - name: get_app_info_step
    capability: trilium
    operation: get_app_info

get_content

Get note content for the signed-in caller. Read-only.
Example: {"id":"example"}

Inputs (params):

Param Type Required Description
id string yes Note ID

Usage:

  - name: get_content_step
    capability: trilium
    operation: get_content
    params:
      id: "..."  # required

health

Health check for the signed-in caller. Read-only.
Example: {}

Inputs (params):

(none)

Usage:

  - name: health_step
    capability: trilium
    operation: health

list

List notes for the signed-in caller. Read-only.
Example: {"limit":20}

Inputs (params):

Param Type Required Description
limit int no Maximum items per page
cursor string no Pagination cursor
sort_by string no Field to sort by
sort_order string no Sort order (asc/desc)
query string no Search query filter

Usage:

  - name: list_step
    capability: trilium
    operation: list
    params:
      limit: 0
      cursor: "..."
      sort_by: "..."
      sort_order: "..."
      query: "..."

Search notes for the signed-in caller. Read-only.
Example: {"query":"example"}

Inputs (params):

Param Type Required Description
query string yes Search query string

Usage:

  - name: search_step
    capability: trilium
    operation: search
    params:
      query: "..."  # required

set_content

Set note content for the signed-in caller. Creates or updates data.
Example: {"id":"example"} (mutation)

Inputs (params):

Param Type Required Description
id string yes Note ID
content string yes Note content

Usage:

  - name: set_content_step
    capability: trilium
    operation: set_content
    params:
      id: "..."  # required
      content: "..."  # required

update

Update a note for the signed-in caller. Creates or updates data.
Example: {"id":"example"} (mutation)

Inputs (params):

Param Type Required Description
id string yes Note ID
title string no New title
content string no New content

Usage:

  - name: update_step
    capability: trilium
    operation: update
    params:
      id: "..."  # required
      title: "..."
      content: "..."