Skip to content

JSON-RPC API: Understanding V1 vs V2, calling Flow APIs from plugins #87

Open
@cspotcode

Description

@cspotcode

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

Problem Description

The docs for JSON-RPC appear inaccurate or misleading in three ways: https://www.flowlauncher.com/docs/#/json-rpc

  1. The dataflow --> and <-- is backwards. "Query" is sent from flow to the plugin. Title/Subtitle/IconPath is sent from the plugin to Flow.
  2. The example response from Plugin to Flow is incorrect. Should be:
-<-- {"Title": "title", "SubTitle": "sub title", "IconPath": "favicon.ico"}
+--> {"result": [{"Title": "title", "SubTitle": "sub title", "IcoPath": "favicon.ico"}]}
  1. The API List is misleading because it is impossible for RPC Plugins to call many (all?) of those methods. For example, how is an RPC plugin supposed to call ChangeQuery or ShowMsg?

To Reproduce

No response

Screenshots

No response

Flow Launcher Version

1.19.2

Windows Build Number

22631.4169

Error Log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions