# Get tasks declared outputs through tooling API

**URL:** https://discuss.gradle.org/t/get-tasks-declared-outputs-through-tooling-api/13008
**Category:** Help/Discuss
**Created:** [December 1, 2015, 11:14am UTC](https://discuss.gradle.org/t/get-tasks-declared-outputs-through-tooling-api/13008 "2015-12-01T11:14:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![aesteve](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aesteve](https://discuss.gradle.org/u/aesteve)
#### Post date: [December 1, 2015, 11:14am UTC](https://discuss.gradle.org/t/get-tasks-declared-outputs-through-tooling-api/13008/1 "2015-12-01T11:14:30Z")

</div>

Hello everyone, and thanks for Gradle and especially the tooling API, neat work.

I was wondering if it was possible to get the outputs the task declared when dealing with the tooling API.

So far I just managed to get task name, description, whether it’s public or not, etc.

But maybe I can (safely ?) cast the GradleTask object into another class (say WithOutputsGradleTask) ? Idk :\

If it’s not possible yet, but just a matter of hands to write the code, I can open an issue and work on it, np 😄

Thanks alot.
