How do I create my own Line CLI plugin?
line plugin new my-tools # in ~/.line/plugins
line plugin new my-tools --project # in .line/plugins of this project
A scaffolded plugin is enabled, because you wrote it. Edit its plugin.json:
- tools: exposed to the model as
<plugin>__<tool>; arguments arrive as JSON on stdin; stdout is the result. - commands:
/<plugin>:<command>, either aprompt(with{{args}}) or arunprogram. - hooks:
session_start,pre_tool,post_tool,turn_end;pre_toolexit code 2 blocks the call. - skills: a folder of skills available while enabled.
After editing, run line plugin enable my-tools again (the fingerprint changed). Full manifest: Plugins.
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.