1. Organisms are constantly under selection to respond effectively to diverse, sometimes rapid, changes in their environment, but not all individuals are equally plastic in their behaviour. Although cognitive processes and personality are expected to influence individual behavioural plasticity, the effects reported are highly inconsistent, which we hypothesise is because ecological context is usually not considered.2. We explored how one type of behavioural plasticity, foraging flexibility, was associated with inhibitory control (assayed using a detour-reaching task) and exploration behaviour in a novel environment (a trait closely linked to the fast-slow personality axis). We investigated how these effects varied across two experimentally manipulated ecological contexts-food value and predation risk.3. In the first phase of the experiment, we trained great tits Parus major to retrieve high value (preferred) food that was hidden in sand so that this became the familiar food source. In the second phase, we offered them the same familiar hidden food at the same time as a new alternative option that was visible on the surface, which was either high or low value, and under either high or low perceived predation risk. Foraging flexibility was defined as the proportion of choices made during 4-min trials that were for the new alternative food source. 4. Our assays captured consistent differences among individuals in foraging flexibility. Inhibitory control was associated with foraging flexibility-birds with high inhibitory control were more flexible when the alternative food was of high value, suggesting they inhibited the urge to select the familiar food and instead selected the new food option. Exploration behaviour also predicted flexibility-fast explorers were more flexible, supporting the information-gathering hypothesis. This | 321