# Timelines

The 4 tools for timelines. Before an agent first makes one, it reads guide topic timelines.

## create_timeline

Make a timeline or roadmap in a space: phases holding tasks and milestones on dates, with owners, status, progress and dependencies (what waits on what). People see a Gantt chart and a list by date; they drag bars to new dates, set progress, draw dependencies and comment on an entry. Give phases, then their tasks and milestones (phase = the phase id), then dependencies. Dates as YYYY-MM-DD, only real ones. Read guide topic "timelines" first; check it with render_timeline.

Parameters:
- `space_id` (string, required)
- `title` (string, required)
- `subtitle` (string): One line: what it plans and how sure the dates are.
- `entries` (object[], required)
- `dependencies` (object[])

## read_timeline

A timeline as it is now, people's edits included: its entries in order with ids (what update_timeline and comment take), kinds, dates (a phase with auto: true spans its entries), phase, progress, status, owner, note, url, and the dependencies, plus checks.

Parameters:
- `item_id` (string, required)

## update_timeline

Change a timeline. Any of: title, subtitle; add_entries (after the others); change_entries (by id: the fields you give replace those fields, "" clears one — status, progress, owner, note, phase, dates); shift_entries (move an entry by a number of days, with everything that waits on it when with_dependents — "Build slips a week"); remove_entries (ids; a phase's entries stay, outside any phase; their dependencies go); order_entries (every id, in the new order); add_dependencies; remove_dependencies. Applied in that order, all or nothing; read_timeline first for the ids — people may have changed it.

Parameters:
- `item_id` (string, required)
- `title` (string)
- `subtitle` (string)
- `add_entries` (object[])
- `change_entries` (object[])
- `shift_entries` (object[])
- `remove_entries` (string[])
- `order_entries` (string[])
- `add_dependencies` (object[])
- `remove_dependencies` (object[])

## render_timeline

See a timeline as people do: a screenshot of the Gantt chart (view chart) or of the list by date (view list), plus checks — dependencies whose dates overlap, entries past their end and not done, entries outside any phase, empty phases, tasks without owners — and errors the page hit.

Parameters:
- `item_id` (string, required)
- `view` (string): Default chart.
