Stop a Running Ballerina Service
sf_stop_projectStops a Ballerina project process started by the deploy tool. Only processes launched during the current session can be stopped.
Instructions
Stops a 'bal run' process previously started by sf_deploy_project. Only PIDs tracked by this server (started via sf_deploy_project during the current session) can be stopped — for safety we won't kill arbitrary host PIDs.
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": {
"pid": "<pid>"
},
"name": "sf_stop_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | PID returned by sf_deploy_project. Only processes started by this server can be stopped. |