Run an allowlisted or configured read-only Artisan command
run_artisanRun allowlisted Artisan commands or read-only project-specific commands in Laravel projects. Use laravel_run_artisan for write-capable custom commands.
Instructions
Runs a built-in allowlisted Artisan command or a project-specific command explicitly configured as read-only. Use laravel_run_artisan for reviewed write-capable custom commands.
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": {
"project": "<project>",
"command": "<command>"
},
"name": "run_artisan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional project-relative working directory. When omitted, the tool auto-detects the relevant app root. | |
| args | No | ||
| command | Yes | ||
| project | Yes | Project key from list_projects. | |
| timeoutSeconds | No |