Skip to content

API requests not working #38

Description

@DavidGBrett

API requests do not seem to work.
This is on the latest release of flow launcher - 2.1.3
Microsoft Windows [Version 10.0.26200.9168]

I tested the first example on your docs for how to use it and unfortunately it does not change the query

from pyflowlauncher import Plugin, Result, send_results, api
from pyflowlauncher.models.json_rpc import JsonRPCResponse

plugin = Plugin()


@plugin.on_method
def query(query: str) -> JsonRPCResponse:
    r = Result(
        title="This is a title!",
        subtitle="This is the subtitle!",
        icon="icon.png",
        json_rpc_action=api.change_query("This is a new query!"),
    )
    return send_results([r])


plugin.run()

from https://garulf.github.io/pyFlowLauncher/guide/API%20Requests/

I then replaced the json_rpc_action with a number of variations

json_rpc_action=api.open_url("google.com"),

json_rpc_action=api.open_setting_dialog(),

And they also did not work.

Flow.Launcher.2026-08-28.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions