@@ -485,21 +485,24 @@ Returns:
485485
486486``` bash
487487# Schedule daily standup for weekdays at 9am
488- ncp run schedule:add \
488+ ncp run schedule:create \
489489 name=" daily-standup" \
490- command=" ncp run workflow:execute workflowName=daily-standup context='{\" slackWebhook\" :\" https://hooks.slack.com/...\" ,\" repo\" :\" owner/repo\" }'" \
490+ tool=" workflow:execute" \
491+ parameters=' {"workflowName":"daily-standup", "context": {"slackWebhook":"https://hooks.slack.com/...", "repo":"owner/repo"}}' \
491492 schedule=" 0 9 * * 1-5"
492493
493494# Schedule content pipeline daily at midnight
494- ncp run schedule:add \
495+ ncp run schedule:create \
495496 name=" content-pipeline" \
496- command=" ncp run workflow:execute workflowName=content-pipeline context='{\" sourceUrl\" :\" https://...\" ,\" recipient\" :\" team@company.com\" }'" \
497+ tool=" workflow:execute" \
498+ parameters=' {"workflowName":"content-pipeline", "context": {"sourceUrl":"https://...", "recipient":"user@example.com"}}' \
497499 schedule=" 0 0 * * *"
498500
499501# Schedule data sync daily at 2am
500- ncp run schedule:add \
502+ ncp run schedule:create \
501503 name=" data-sync" \
502- command=" ncp run workflow:execute workflowName=data-sync context='{\" dbPath\" :\" ./data.db\" ,\" s3Bucket\" :\" backups\" ,\" slackWebhook\" :\" ...\" }'" \
504+ tool=" workflow:execute" \
505+ parameters=' {"workflowName":"data-sync", "context": {"dbPath":"./data.db", "s3Bucket":"backups", "slackWebhook":"..."}}' \
503506 schedule=" 0 2 * * *"
504507```
505508
@@ -535,44 +538,49 @@ ncp run workflow:execute \
535538 context=' {"slackWebhook":"https://hooks.slack.com/services/T00/B00/XXX","repo":"anthropics/claude-code"}'
536539
537540# 2. If successful, schedule it
538- ncp run schedule:add \
541+ ncp run schedule:create \
539542 name=" team-standup" \
540- command=" ncp run workflow:execute workflowName=daily-standup context='{\" slackWebhook\" :\" https://hooks.slack.com/services/T00/B00/XXX\" ,\" repo\" :\" anthropics/claude-code\" }'" \
543+ tool=" workflow:execute" \
544+ parameters=' {"workflowName":"daily-standup", "context": {"slackWebhook":"https://hooks.slack.com/services/T00/B00/XXX", "repo":"anthropics/claude-code"}}' \
541545 schedule=" 0 9 * * 1-5" \
542546 description=" Daily standup summary posted to Slack"
543547
544548# 3. Verify it's scheduled
545549ncp run schedule:list
546550
547551# 4. Remove if needed
548- ncp run schedule:remove name =" team-standup"
552+ ncp run schedule:delete job_id =" team-standup"
549553```
550554
551555### Advanced: Multiple Workflows on Different Schedules
552556
553557``` bash
554558# Morning standup
555- ncp run schedule:add \
559+ ncp run schedule:create \
556560 name=" morning-standup" \
557- command=" ncp run workflow:execute workflowName=daily-standup context='...'" \
561+ tool=" workflow:execute" \
562+ parameters=' {"workflowName":"daily-standup", "context": "..."}' \
558563 schedule=" 0 9 * * 1-5"
559564
560565# Hourly content check
561- ncp run schedule:add \
566+ ncp run schedule:create \
562567 name=" hourly-content-monitor" \
563- command=" ncp run workflow:execute-task task='Check website for changes and alert if needed' context='...'" \
568+ tool=" workflow:execute-task" \
569+ parameters=' {"task": "Check website for changes and alert if needed", "context": "..."}' \
564570 schedule=" 0 * * * *"
565571
566572# Nightly backup
567- ncp run schedule:add \
573+ ncp run schedule:create \
568574 name=" nightly-backup" \
569- command=" ncp run workflow:execute workflowName=data-sync context='...'" \
575+ tool=" workflow:execute" \
576+ parameters=' {"workflowName":"data-sync", "context": "..."}' \
570577 schedule=" 0 2 * * *"
571578
572579# Weekly report
573- ncp run schedule:add \
580+ ncp run schedule:create \
574581 name=" weekly-report" \
575- command=" ncp run workflow:execute-custom workflow='...'" \
582+ tool=" workflow:execute-custom" \
583+ parameters=' {"workflow": "..."}' \
576584 schedule=" 0 9 * * 1"
577585```
578586
0 commit comments