@plutojl/cli 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/cli.cjs +138 -105
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,12 +69,13 @@ npx @plutojl/cli tools [name] [--mcp-port <port>]
|
|
|
69
69
|
|
|
70
70
|
### `call`
|
|
71
71
|
|
|
72
|
-
Call a notebook tool from the command line. The tool name and JSON arguments may appear before or after the options.
|
|
72
|
+
Call a notebook tool from the command line. The tool name and JSON arguments may appear before or after the options. The JSON may also come from a file (`@args.json`) or stdin (`-`), which avoids shell quoting for multi-line cell code. Relative `path`, `output_path`, and `new_path` arguments are resolved against the current directory before they are sent, since the server needs absolute notebook paths.
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
npx @plutojl/cli call <tool_name> [json_args] [options]
|
|
75
|
+
npx @plutojl/cli call <tool_name> [json_args | @file | -] [options]
|
|
76
76
|
|
|
77
77
|
# Examples
|
|
78
|
+
npx @plutojl/cli call learn_pluto_basics # read this first
|
|
78
79
|
npx @plutojl/cli call get_notebook_status
|
|
79
80
|
npx @plutojl/cli call open_notebook '{"path": "/tmp/nb.pluto.jl"}'
|
|
80
81
|
npx @plutojl/cli call execute_code '{"code": "sqrt(2)"}'
|