task_find_by_name
Find tasks in OmniFocus by matching their name using exact, prefix, or substring search. Supports case sensitivity and result limits.
Instructions
Find tasks in OmniFocus by name. Returns ALL matching tasks (names are not unique in OmniFocus). Names collide in OmniFocus; prefer task_get with an ID when you have one. Use search_query instead when you need to search task notes as well, or want full-text content search. Zero matches returns an empty array — not an error. Returns tasks[]; safe to call repeatedly; no side effects. Example: task_find_by_name({ name: "Buy milk" }) Example: task_find_by_name({ name: "report", matchMode: "contains" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'exact' = full task name must match (default); 'prefix' = name must start with query; 'contains' = query appears anywhere in name. | |
| limit | No | Maximum number of results to return (1..500). Default 50. | |
| query | Yes | Name to search for. Behaviour depends on mode: exact = full name match; prefix = name starts with this string; contains = substring match anywhere in name. | |
| caseSensitive | No | true = match is case-sensitive; false = case-insensitive (default false). |