import_package
Import a Pharo package from a specified file path. Provide the package name and optional path to load it into the environment.
Instructions
Import a package from specified path.
Args: package_name: The name of the package to import path: The path to the package file to import (default: /tmp)
Returns: dict: API response with success/error and result - Success: {"success": True, "result": str} - result contains import success message - Error: {"success": False, "error": str} - error contains error message
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "<package_name>"
},
"name": "import_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | The name of the package to import | |
| path | No | The path to the package file to import | /tmp |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||