Add a new task to Google Tasks
Creates a new task in Google Tasks with optional due dates and notes.
/plugin marketplace add leefowlercu/agent-kit/plugin install gtasks-todo-manager@leefowlercu-agent-kit[task description]This command creates a new task in Google Tasks.
If $ARGUMENTS is not empty, intelligently parse the provided text to extract task information.
Arguments received: $ARGUMENTS
The user may provide information in any format - structured flags, natural language, or a mix. Extract whatever information is present:
Examples of valid inputs:
Buy groceriesBuy groceries --list Shopping --due 2024-03-20Buy groceries for the party on FridayAdd "Call dentist" to my personal account with a note about the annual checkupSubmit the quarterly report to the Work list, due next MondayPick up dry cleaning - add to my shopping list on my work gmailParse natural language dates like "tomorrow", "next Friday", "end of month" into actual dates.
Parse account references like "my personal account", "work gmail", "john@gmail.com" to identify the target account.
After parsing $ARGUMENTS, if the task title is still unclear, use AskUserQuestion to ask: "What task would you like to add?"
For other missing information (list, due date, notes, account), only prompt if:
Otherwise, use sensible defaults:
If $ARGUMENTS is empty, use AskUserQuestion to gather information:
Once task information is determined, invoke the gtasks-todo-manager skill with:
The skill's Tasks operation handles task creation.
After the skill completes the operation, confirm to the user: