Access collection type inputs from plugin

I want to create a plugin to generate a link based on the slug of the article.

Let’s say I’m on the collection of an article. The plugin is on the menu in the right and I need to get access to the slug field in the article.

What strapi functions do I need to use?